About Store Forum Documentation Contact



Post Reply 
precision flt
Author Message
1991mirec Offline
Member

Post: #1
precision flt
hi
is there a way how i can set max precision after decimal points so for example i have flt i =7;
and it displays as 7.000 and i want to see it just as 7.0.
thank you.
10-12-2013 11:03 AM
Find all posts by this user Quote this message in a reply
Pherael Offline
Member

Post: #2
RE: precision flt
As i remember, there is RealToText or RealToStr with precision option. I'm writing from phone so can't check it at this moment for sure.
10-12-2013 11:17 AM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #3
RE: precision flt
You can use:

Code:
flt i = 7f;
D.text(.., TextReal(i, 1));
10-12-2013 11:20 AM
Find all posts by this user Quote this message in a reply
1991mirec Offline
Member

Post: #4
RE: precision flt
yeah thx.. nice one.. it works
10-12-2013 11:31 AM
Find all posts by this user Quote this message in a reply
Post Reply