Keith Devens .com |
Friday, October 10, 2008 | ![]() |
| We ought always to deal justly, not only with those who are just to us, but likewise to those who... – Hierocles | ||
|
| ← Worldofraids forums :: Sha'tari Skyguard Reputation Guide | FIREBUG IS SO AWESOME → |

Revence 27 (http://freeshells.ch/~revence) wrote:
Nathaniel wrote:
In the financial world, negative currency amounts are typically formatted that way, so that would be the reason for the parens, and isn't necessarily retarded. I don't know how much C# looks at the localization settings (Regional and Language Settings in the Windows control panel), but it's possible that its default behavior would change based on them.
Keith (http://keithdevens.com/) wrote:
In the financial world, negative currency amounts are typically formatted that way, so that would be the reason for the parens, and isn't necessarily retarded.
The reason I say C# is retarded here is not because the default is parens -- I figured using parens is standard enough for some group important enough for Microsoft to default to that -- but because it's so complicated to change to a different format.
I don't know how much C# looks at the localization settings (Regional and Language Settings in the Windows control panel), but it's possible that its default behavior would change based on them.
Yes, it does, or at least it's supposed to. My regional settings had negative currency displayed with a negative sign, yet it doesn't respect that. So, I dunno.
Almutalibi wrote:
That was very good.....I searched alot to find a solution for this problem...
Thanks alot
R wrote:
Thanks, I was looking for this. But as for it being retarded, it's a sign of the times. If you want a globalized language, that's what you gotta do. Were you expecting if(AmericaFYah), UseNegativeSign = 1? Sure negative signs are fairly standard throughout the world, but you could easily extend that to some other notation that someone else would find odd. Maybe periods instead of commas, for instance. Soon there'd be who knows how many flags.
Feel free to post a comment below. Please see my comment policy.
Formatting Rules (No HTML):
Generated in about 0.312s.
(Used 8 db queries)

Um ... that's more like the libraries being retarded, rather that C# being retarded. But then, with them money issues, one will almost always be dealing with a different library for a different day.
If C# is retarded, it is because she inherited bad genes.