{"id":456,"date":"2017-01-19T12:44:27","date_gmt":"2017-01-19T12:44:27","guid":{"rendered":"https:\/\/ibex.tech\/windows-iot\/?p=456"},"modified":"2022-09-13T14:50:47","modified_gmt":"2022-09-13T13:50:47","slug":"display-values-in-a-string","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/uwp-programming-in-c\/strings-uwp-programming-in-c\/display-values-in-a-string","title":{"rendered":"Display Values In A String"},"content":{"rendered":"<h4>\n\tDisplay value formatted to 2 decimal places<\/h4>\n<pre><code>\n\tdouble value = (double)12.3;\n\tstring MyString = value.ToString(\"#0.00\");\n\t\/\/MyString will be \"12.30\"\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Display value formatted to 2 decimal places double value = (double)12.3; string MyString = value.ToString(&#8220;#0.00&#8221;); \/\/MyString will be &#8220;12.30&#8221; &nbsp;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[127],"tags":[],"class_list":["post-456","post","type-post","status-publish","format-standard","hentry","category-strings-uwp-programming-in-c"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=456"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/456\/revisions"}],"predecessor-version":[{"id":1155,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/456\/revisions\/1155"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}