Jump to content
  • Advertisement
Sign in to follow this  
laeuchli

Overriding decimal separator in STL

This topic is 2949 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!