#1 2014-05-28 11:18:36

ComingNine
Member
Registered: 2010-07-29
Posts: 294

Why there is no String<->Float conversion replacement in Syncommons ?

There are String<->Integer and String<->Currency conversion replacements in Syncommons unit. Furthermore, there are even a few improvements of them last week.

I am thus curious why there is no String<->Float conversion replacement in Syncommons ? Is it because the RTL version is already close to best ?

Last edited by ComingNine (2014-05-28 11:18:52)

Offline

#2 2014-05-28 11:49:26

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: Why there is no String<->Float conversion replacement in Syncommons ?

You have function ExtendedToString() which uses FloatToText() or raw str() function.
But FloatToText() sounded like the easiest option in this case.

For string to float conversion, you have function GetExtended() which is pretty much optimized (with both pure pascal and x86 asm versions).

Thanks for the feedback.

Offline

Board footer

Powered by FluxBB