PureBytes Links
Trading Reference Links
|
Hello,
There is no difference for positive numbers.
But there IS a difference for negative numbers:
WriteVal(int(-2.7)); ->>> gives -2
WriteVal(floor(-2.7)); ->>> gives -3
int gives signed INTEGER portion of the number (so it just removes fractional part regardless of sign)
The floor function returns a value representing the largest integer that is less than or equal to x
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "bluesinvestor" <investor@xxxx>
To: "Amibroker" <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, April 17, 2002 11:49 PM
Subject: [amibroker] Floor vs. Int
> Tomasz et all,
>
> What is the difference between 'FLOOR' and 'INT'?
>
> Thanks in advance,
> Peter
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
|