Raised This Month: $51 Target: $400
 12% 

Which is faster FloatToString or StrCat ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kellan123
AlliedModders Donor
Join Date: Aug 2012
Old 12-31-2018 , 19:01   Which is faster FloatToString or StrCat ?
Reply With Quote #1

Which is faster FloatToString or StrCat ?
Kellan123 is offline
Kailo
Senior Member
Join Date: Sep 2014
Location: Moscow, Russia
Old 12-31-2018 , 19:19   Re: Which is faster FloatToString or StrCat ?
Reply With Quote #2

Do you mean probably format("%f")?
If so, FloatToString must be faster but has less options (rather, to say has no options of output style).
Kailo is offline
ofir753
Senior Member
Join Date: Aug 2012
Old 01-02-2019 , 06:57   Re: Which is faster FloatToString or StrCat ?
Reply With Quote #3

It's the same, FloatToString calling sprintf, https://github.com/alliedmodders/sou...tring.cpp#L175
ofir753 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode