From: | Donovan Reeve |
Date: | 12 Jan 2000 at 16:48:21 |
Subject: | Re: MC68000(+) command execution times. |
On 13-Jan-00, Sami N��t�nen flashed:
-clip-
>Well got nothing to do, with conversion of 0.25 to 16.16 or float number.
>But if the first number is integer, then the next one is converted to
>integer as well. So try to put them in the other way around.
>NPrint 5*0.25 ; result is 0
>NPrint 0.25*5 ; result is 1.25
>This is perfectly normal way for math operations in many other languages
>too, not just in blitz.
Hey Sami,
Thanks a bunch!!! I didn't know about this before.
You just helped me figure out what was wrong with one of my programs
that I was tearing out my hair over. (and now it's nearly gone)
I can see now that I was winding up trying to devide by zero due to
the phenominum you just mentioned.
Thankyou thankyou thankyou!
Boy! It really pays to hang out on this list, you never know when
some extremely useful bit of information will pop up!
cacha later,
Donovan Reeve (bubby.lnk@ispi.net)
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie