Displaying whole number of real variable
Displaying whole number of real variable
(OP)
How do I display the whole number of a real variable if the number does not have any decimal places. I need to display the number with decimal places if it has any.
Ex.
3.00 as 3
3.45 as 3.45
Ex.
3.00 as 3
3.45 as 3.45
RE: Displaying whole number of real variable
But there's probably a simpler way.
RE: Displaying whole number of real variable
Regards,
Bert Vingerhoets
vingerhoetsbert@hotmail.com
http://student.vub.ac.be/~bvingerh/
Don't worry what people think about you. They're too busy wondering what you think about them.
RE: Displaying whole number of real variable
Function Whole(Source : Real) : Boolean;
Begin
If (Int(Source) <> Source) then
Whole := False
Else
Whole := True;
End;
Good Luck ยง;O)
Jakob
RE: Displaying whole number of real variable