On 10/7/05 2:30 PM, "jbv" <[EMAIL PROTECTED]> wrote:

> Nevertheless, how do you explain that the following :
> 
>   put 36 into A
>   put 34.2 into B
>   put A-B into C
> 
>   put C*100 into C
>   put trunc(C)
> 
> returns 180 with Rev 2.5 on Mac OS9, but returns 179 on other
> platforms such as Linux or Win2000 ?

I don't know about that, but perhaps the docs should say that coercing the
number back into a string (by adding "") would make the trunc() function
"more right". ;-)

That is, if you had:

  put (C*100) & "" into C  -- coerces to a string
  put trunc(C)

You should always get 180...

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to