Hello,
after one delphi session every one of my single floats has been saving into a wordpad as this weird 2.73500000000000E+0003
2.00000000000000E+0002 notation, same goes with printing is there any way to reverse this ?
Mobix
0
Newbie Poster
Recommended Answers
Jump to PostHello,
In Delphi, you can almost transform any data type to string through some built-in functions. For float variables, there is FloatToStr, FloatToStrF. In your case, I think the second one fits better.
function FloatToStrF(Value: Extended; Format : TFloatFormat; Precision, Digits : Integer) : String; - for more …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.