Discussion:
Format Float
(too old to reply)
Carl
2008-11-26 08:47:42 UTC
Permalink
hi there.

I want to cut off some Digits from a Float Value WITHOUT rounding.

eg

-33.123456789

to appear as

-33.123456

NOT Rounding the last Digit... Using FormatFloat always rounds the
Value...

Any ideas
Benj Nunez
2008-11-27 09:13:06 UTC
Permalink
Hi!

I think this link might help you out:

http://www.latiumsoftware.com/en/delphi/00033.php



Cheers!


Benj
Post by Carl
hi there.
I want to cut off some Digits from a Float Value WITHOUT rounding.
eg
-33.123456789
to appear as
-33.123456
NOT Rounding the last Digit... Using FormatFloat always rounds the
Value...
Any ideas
Loading...