[Info-vax] Is this a Bug ?
glen herrmannsfeldt
gah at ugcs.caltech.edu
Tue Apr 17 07:53:01 EDT 2012
StGallen <sengupta.suhas at gmail.com> wrote:
> I have a situation where I need to check if the integer part
> of a decimal number is > 0.
> The number could be upto 999999999999.999999. Thus, I need to
> check if the integer part 999999999999 is greater than 0.
If the integer (truncated) part is greater than zero, the
number has to be greater than or equal to 1.0.
Just compare to 1.0, which should work even if it is very large.
You don't say what to do with negative numbers.
-- glen
More information about the Info-vax
mailing list