Re: fix(4.70*100) is... 469 [message #53567 is a reply to message #53566] |
Wed, 18 April 2007 21:36   |
Qing
Messages: 12 Registered: February 2007
|
Junior Member |
|
|
On Apr 19, 2:31 pm, Qing <c...@bigpond.net.au> wrote:
> On Apr 19, 8:48 am, b_efrem...@yahoo.com wrote:
>
>
>
>
>
>> Hi Guys,
>> There's something I can not explain to myself, so maybe someone can
>> enlighten me?
>> print,fix(4.70*100)
>> 469
>> and also:
>> print,string(4.70*100,format='(i3)')
>> 469
>
>> While, everything else that came into my head to try was OK like:
>> print,fix(5.70*100)
>> 570
>> print,fix(3.70*100)
>> 370
>> print,fix(4.60*100)
>> 460
>> print,string(4.60*100,format='(i3)')
>> 460
>> ...
>> etc..
>
>> Thanks in advance!
>> Cheers.
>> Boryana
>
> Look at that!
> IDL> print, double(4.7)
> 4.6999998- Hide quoted text -
>
> - Show quoted text -
And more ...
IDL> print, double(9.4)
9.3999996
IDL> print, double(2.35)
2.3499999
IDL> print, double(18.8)
18.799999
IDL> print, double(18.9)
18.900000
IDL> print, double(18.7)
18.700001
...
|
|
|