ieplved
asked on
Truncating mathematics result
I would like to truncate the result of division , without rounding up,
for report presentation.
Is there such a feature in C and Informix?
for report presentation.
Is there such a feature in C and Informix?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
(long)(a/b) can also round up if a/b is negative, which ieplved didn't want.
(On the other hand, the question also said "truncate",
so it's not quite clear what's really being asked for)
(On the other hand, the question also said "truncate",
so it's not quite clear what's really being asked for)
ASKER
rbr, are you familiar with Informix-4GL?
floor(a/b)