{"id":7824,"date":"2021-12-22T13:14:38","date_gmt":"2021-12-22T04:14:38","guid":{"rendered":"https:\/\/automaton-media.com\/en\/?p=7824"},"modified":"2022-05-12T17:18:27","modified_gmt":"2022-05-12T08:18:27","slug":"20211222-7824","status":"publish","type":"post","link":"https:\/\/automaton-media.com\/en\/news\/20211222-7824\/","title":{"rendered":"A game developer falls into the dreaded \u201cnumber notation\u201d trap of programming"},"content":{"rendered":"\n<p><em>Written by. Nick Mosier based on the&nbsp;<a href=\"https:\/\/automaton-media.com\/articles\/newsjp\/20211221-186713\/\" target=\"_blank\" rel=\"noreferrer noopener\">original Japanese article<\/a>&nbsp;(original article&#8217;s publication date: 2021-12-21 17:05 JST)<\/em><\/p>\n\n\n\n<p><br>Japanese solo indie developer THIQXIS <a href=\"https:\/\/twitter.com\/thiqxis\/status\/1472435650981163011\" target=\"_blank\" rel=\"noreferrer noopener\">tweeted<\/a> that they\u2019ve been receiving reports of issues from Vietnamese players, and now know why. The root of the problem comes from how different countries use commas and periods when writing numbers. This problem has become something of a hot topic among developers with many expressing their surprise and passing along their sympathy.<\/p>\n\n\n\n<p>When we tried to play THIQXIS\u2019s rhythm game <em>TAKUMI\u00b3<\/em> on Android, there were no issues when the device was set to English or Japanese. But when trying to play in Vietnamese, we were able to confirm issues with notes not showing up or being stretched horizontally. These issues also occurred when using German. When using French, there was an issue where the song list didn\u2019t show up in the first place.<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"675\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" src=\"http:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-001.jpg\" alt=\"\" class=\"wp-image-7827\" srcset=\"https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-001.jpg 1200w, https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-001-600x338.jpg 600w, https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-001-380x214.jpg 380w, https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-001-768x432.jpg 768w, https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-001-150x84.jpg 150w, https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-001-300x169.jpg 300w, https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-001-696x392.jpg 696w, https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-001-1068x601.jpg 1068w, https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-001-747x420.jpg 747w\" \/><figcaption>Gameplay when the device is set to Japanese<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"675\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" src=\"http:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-002.jpg\" alt=\"\" class=\"wp-image-7826\" srcset=\"https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-002.jpg 1200w, https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-002-600x338.jpg 600w, https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-002-380x214.jpg 380w, https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-002-768x432.jpg 768w, https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-002-150x84.jpg 150w, https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-002-300x169.jpg 300w, https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-002-696x392.jpg 696w, https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-002-1068x601.jpg 1068w, https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-002-747x420.jpg 747w\" \/><figcaption>Gameplay when the device is set to Vietnamese<\/figcaption><\/figure>\n\n\n\n<p><br>The root of the problem is how periods and commas are used to separate numbers. In the United States and Japan, a four-digit number is written like \u201c1,000.00.\u201d But in countries like Vietnam and Germany, the period and comma are switched so it\u2019s written as \u201c1.000,00.\u201d And in France, a space is used, so it would look like \u201c1 000,00.\u201d<\/p>\n\n\n\n<p>If you don\u2019t know the notation in Vietnam, 1,000 would become 1. A human can look at the context and understand what was meant, but a program can\u2019t do that. A program that interprets data using the Japan and United States standard would see \u201c1.000,00\u201d and accept it as just \u201c1.\u201d For example, if an object\u2019s width was set to \u201c1.234\u201d by Japan\u2019s standard, in Vietnamese notation it would be 1,000 times bigger. This is what appears to be happening in <em>TAKUMI\u00b3<\/em>.<\/p>\n\n\n\n<p>Fortunately, it looks like THIQXIS recruited some help and seems to have found a solution. THIQXIS\u2019s tweet also drew a lot of reactions with others chiming in with similar experiences of their own, including looking at estimates received from other countries. It appears that this difference in notation is a worry for accountants and programmers alike. Some people also seem interested in the historic context behind the notation that\u2019s used in Europe also being used in Vietnam.<\/p>\n\n\n\n<p><em>Pok\u00e9mon Brilliant Diamond and Pok\u00e9mon Shining Pearl <\/em>have also had their own issues over number notation differences across different language settings (<a href=\"https:\/\/automaton-media.com\/en\/news\/20211126-6610\/\" target=\"_blank\" rel=\"noreferrer noopener\">related article<\/a>). In <em>Pok\u00e9mon BDSP<\/em>\u2019s case, the in-game calculator would behave strangely depending on the Nintendo Switch\u2019s language settings. Issues with number notation based on language settings may only continue to nag developers in the future.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One game developer falls into the dreaded \u201cnumber notation\u201d trap of programming. An example of how the notation rule differences between countries can cause bugs in video games.<\/p>\n","protected":false},"author":30,"featured_media":7828,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_gspb_post_css":"","footnotes":""},"categories":[62,3],"tags":[39,17],"class_list":["post-7824","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-indie-games","category-news","tag-indie-games","tag-japan-related-news"],"blocksy_meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>A game developer falls into the dreaded \u201cnumber notation\u201d trap of programming - AUTOMATON WEST<\/title>\n<meta name=\"description\" content=\"One game developer falls into the dreaded \u201cnumber notation\u201d trap of programming. An example of how the notation rule differences between countries can cause bugs in video games.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/automaton-media.com\/en\/news\/20211222-7824\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A game developer falls into the dreaded \u201cnumber notation\u201d trap of programming - AUTOMATON WEST\" \/>\n<meta property=\"og:description\" content=\"One game developer falls into the dreaded \u201cnumber notation\u201d trap of programming. An example of how the notation rule differences between countries can cause bugs in video games.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/automaton-media.com\/en\/news\/20211222-7824\/\" \/>\n<meta property=\"og:site_name\" content=\"AUTOMATON WEST\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-22T04:14:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-12T08:18:27+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-header.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Sayoko Narita\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@AUTOMATON_ENG\" \/>\n<meta name=\"twitter:site\" content=\"@AUTOMATON_ENG\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sayoko Narita\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"A game developer falls into the dreaded \u201cnumber notation\u201d trap of programming - AUTOMATON WEST","description":"One game developer falls into the dreaded \u201cnumber notation\u201d trap of programming. An example of how the notation rule differences between countries can cause bugs in video games.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/automaton-media.com\/en\/news\/20211222-7824\/","og_locale":"en_US","og_type":"article","og_title":"A game developer falls into the dreaded \u201cnumber notation\u201d trap of programming - AUTOMATON WEST","og_description":"One game developer falls into the dreaded \u201cnumber notation\u201d trap of programming. An example of how the notation rule differences between countries can cause bugs in video games.","og_url":"https:\/\/automaton-media.com\/en\/news\/20211222-7824\/","og_site_name":"AUTOMATON WEST","article_published_time":"2021-12-22T04:14:38+00:00","article_modified_time":"2022-05-12T08:18:27+00:00","og_image":[{"width":1200,"height":675,"url":"http:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-header.jpg","type":"image\/jpeg"}],"author":"Sayoko Narita","twitter_card":"summary_large_image","twitter_creator":"@AUTOMATON_ENG","twitter_site":"@AUTOMATON_ENG","twitter_misc":{"Written by":"Sayoko Narita","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/automaton-media.com\/en\/news\/20211222-7824\/#article","isPartOf":{"@id":"https:\/\/automaton-media.com\/en\/news\/20211222-7824\/"},"author":{"name":"Sayoko Narita","@id":"https:\/\/automaton-media.com\/en\/#\/schema\/person\/6ff2721c450e20970538373b7515eaf6"},"headline":"A game developer falls into the dreaded \u201cnumber notation\u201d trap of programming","datePublished":"2021-12-22T04:14:38+00:00","dateModified":"2022-05-12T08:18:27+00:00","mainEntityOfPage":{"@id":"https:\/\/automaton-media.com\/en\/news\/20211222-7824\/"},"wordCount":458,"publisher":{"@id":"https:\/\/automaton-media.com\/en\/#organization"},"image":{"@id":"https:\/\/automaton-media.com\/en\/news\/20211222-7824\/#primaryimage"},"thumbnailUrl":"https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-header.jpg","keywords":["Indie Games","News (Japan-related)"],"articleSection":["Indie Games","News"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/automaton-media.com\/en\/news\/20211222-7824\/","url":"https:\/\/automaton-media.com\/en\/news\/20211222-7824\/","name":"A game developer falls into the dreaded \u201cnumber notation\u201d trap of programming - AUTOMATON WEST","isPartOf":{"@id":"https:\/\/automaton-media.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/automaton-media.com\/en\/news\/20211222-7824\/#primaryimage"},"image":{"@id":"https:\/\/automaton-media.com\/en\/news\/20211222-7824\/#primaryimage"},"thumbnailUrl":"https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-header.jpg","datePublished":"2021-12-22T04:14:38+00:00","dateModified":"2022-05-12T08:18:27+00:00","description":"One game developer falls into the dreaded \u201cnumber notation\u201d trap of programming. An example of how the notation rule differences between countries can cause bugs in video games.","breadcrumb":{"@id":"https:\/\/automaton-media.com\/en\/news\/20211222-7824\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/automaton-media.com\/en\/news\/20211222-7824\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/automaton-media.com\/en\/news\/20211222-7824\/#primaryimage","url":"https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-header.jpg","contentUrl":"https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/12\/20211221-186713-header.jpg","width":1200,"height":675},{"@type":"BreadcrumbList","@id":"https:\/\/automaton-media.com\/en\/news\/20211222-7824\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/automaton-media.com\/en\/"},{"@type":"ListItem","position":2,"name":"A game developer falls into the dreaded \u201cnumber notation\u201d trap of programming"}]},{"@type":"WebSite","@id":"https:\/\/automaton-media.com\/en\/#website","url":"https:\/\/automaton-media.com\/en\/","name":"AUTOMATON WEST","description":"AUTOMATON is a website that covers the Japanese gaming world. We bring you the news on video games from Osaka and Tokyo.","publisher":{"@id":"https:\/\/automaton-media.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/automaton-media.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/automaton-media.com\/en\/#organization","name":"\u682a\u5f0f\u4f1a\u793e\u30a2\u30af\u30c6\u30a3\u30d6\u30b2\u30fc\u30df\u30f3\u30b0\u30e1\u30c7\u30a3\u30a2","url":"https:\/\/automaton-media.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/automaton-media.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/04\/activegamingmedia_logo.png","contentUrl":"https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2021\/04\/activegamingmedia_logo.png","width":374,"height":190,"caption":"\u682a\u5f0f\u4f1a\u793e\u30a2\u30af\u30c6\u30a3\u30d6\u30b2\u30fc\u30df\u30f3\u30b0\u30e1\u30c7\u30a3\u30a2"},"image":{"@id":"https:\/\/automaton-media.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/AUTOMATON_ENG","https:\/\/www.youtube.com\/channel\/UCabvYnvuUUbbGUrxkaFRgSA"]},{"@type":"Person","@id":"https:\/\/automaton-media.com\/en\/#\/schema\/person\/6ff2721c450e20970538373b7515eaf6","name":"Sayoko Narita","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2023\/12\/Narita2-150x150-1-100x100.jpg","url":"https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2023\/12\/Narita2-150x150-1-100x100.jpg","contentUrl":"https:\/\/automaton-media.com\/en\/wp-content\/uploads\/2023\/12\/Narita2-150x150-1-100x100.jpg","caption":"Sayoko Narita"},"description":"JP AUTOMATON writer","url":"https:\/\/automaton-media.com\/en\/author\/seiji-narita\/"}]}},"_links":{"self":[{"href":"https:\/\/automaton-media.com\/en\/wp-json\/wp\/v2\/posts\/7824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/automaton-media.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/automaton-media.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/automaton-media.com\/en\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/automaton-media.com\/en\/wp-json\/wp\/v2\/comments?post=7824"}],"version-history":[{"count":4,"href":"https:\/\/automaton-media.com\/en\/wp-json\/wp\/v2\/posts\/7824\/revisions"}],"predecessor-version":[{"id":7831,"href":"https:\/\/automaton-media.com\/en\/wp-json\/wp\/v2\/posts\/7824\/revisions\/7831"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/automaton-media.com\/en\/wp-json\/wp\/v2\/media\/7828"}],"wp:attachment":[{"href":"https:\/\/automaton-media.com\/en\/wp-json\/wp\/v2\/media?parent=7824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/automaton-media.com\/en\/wp-json\/wp\/v2\/categories?post=7824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/automaton-media.com\/en\/wp-json\/wp\/v2\/tags?post=7824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}