|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [WM]: Playing with LSB !
Shiraz,
One way, and I daresay not the only or most elegant way, is to multiply
by 10 to the power of the number of significant figures you wish to
retain. In your example, this would by 10^4, or 10000. Round the new
number, and then divide by the same number that you muliplied by.
Using this principle, you can probably bodge it to do other things as
well.
E.g.
4.731634 x 10000 = 47316.34
round(47316.34) = 47316
47316/10000 = 4.7316
Regards,
Henry
----------------------
Henry Knowles, Electrical & Electronic Engineering
Henry.Knowles@bristol.ac.uk
______________________________________________________________________________
Watermarking Mailing List - http://www.watermarkingworld.org/ml.html
To unsubscribe send email to "majordomo@watermarkingworld.org" with
"unsubscribe watermarking YOURMAIL" in the body.
______________________________________________________________________________
|