Jump to content
  • Advertisement
Sign in to follow this  
laeuchli

Overriding decimal separator in STL

This topic is 2858 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello All,

I am writing out some data using file streams that must use a period as the decimal separator, since the specification for that format requires it. However, the windows localization settings are kicking in and setting the separator to be comma. Is there a way to specifically specify what I want? I googled, and didn't see what i was looking for.

Regards,
Jesse

Share this post


Link to post
Share on other sites
Advertisement
Keep in mind that C++ leaves implementation defined many aspects of locale system, so you might want to mention which compiler/standard library implementation you are using.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!