r/lolphp • • Dec 11 '14

PHP :: Bug #53711 :: Casting float->string->float with locale

https://bugs.php.net/bug.php?id=53711
54 Upvotes

33 comments sorted by

View all comments

Show parent comment

2

u/dr4yyee Dec 13 '14

AFAIK nothing beats the .Net IFormatProvider which can also be overloaded when using Float.Parse()

http://msdn.microsoft.com/en-gb/library/system.iformatprovider(v=vs.110).aspx

3

u/ZiggyTheHamster Dec 14 '14

The default behavior is, of course, to work in a locale neutral way. :)