{"id":791,"date":"2012-02-24T17:46:11","date_gmt":"2012-02-24T17:46:11","guid":{"rendered":"https:\/\/ibex.tech\/visualcpp\/?p=791"},"modified":"2022-02-17T06:24:03","modified_gmt":"2022-02-17T06:24:03","slug":"value-internationalization-issues","status":"publish","type":"post","link":"https:\/\/ibex.tech\/visualcpp\/strings\/value-internationalization-issues","title":{"rendered":"Value Internationalization Issues"},"content":{"rendered":"<h4>Comma Instead Of Decimal Point<\/h4>\n<p>In countries such as Germany they use commas as decimal points (e.g. -0,136222). \u00a0So if your program is converting a string like this:<\/p>\n<pre><code>\r\n\tString ^sTemp;\r\n\tSingle Value;\r\n\tsTemp = \"1.234\";\r\n\tValue = Convert::ToSingle(sTemp);\r\n<\/code><\/pre>\n<p>What you will actually get is 1234 in Value &#8211; the decimal point is ignored.<\/p>\n<h5>Correctly Handling Conversions From Strings<\/h5>\n<pre><code>\r\n\tString ^sTemp;\r\n\tSingle Value;\r\n\tsTemp = \"1.234\";\r\n\tValue = Single::Parse(sTemp, System::Globalization::CultureInfo::InvariantCulture);\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Comma Instead Of Decimal Point In countries such as Germany they use commas as decimal points (e.g. -0,136222). \u00a0So if your program is converting a string like this: String ^sTemp; Single Value; sTemp = &#8220;1.234&#8221;; Value = Convert::ToSingle(sTemp); What you will actually get is 1234 in Value &#8211; the decimal point is ignored. Correctly Handling [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-791","post","type-post","status-publish","format-standard","hentry","category-strings"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/791","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/comments?post=791"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/791\/revisions"}],"predecessor-version":[{"id":1022,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/791\/revisions\/1022"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/media?parent=791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/categories?post=791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/tags?post=791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}