1991mirec
Member
|
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 |
|
Pherael
Member
|
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 |
|
Tottel
Member
|
RE: precision flt
You can use:
Code:
flt i = 7f;
D.text(.., TextReal(i, 1));
|
|
10-12-2013 11:20 AM |
|
1991mirec
Member
|
RE: precision flt
yeah thx.. nice one.. it works
|
|
10-12-2013 11:31 AM |
|