Skip to content

Commit

Permalink
Add decimal points map
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankNine committed Jul 23, 2024
1 parent ce072c1 commit fe63f43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion posts/gatcha-game-notes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<meta itemprop="name" content="手機營運類遊戲筆記">
<meta itemprop="description" content="因為之前接觸過手機營運類遊戲的開發跟維護,想分享一些心得。我自己工作算是 Unity 前端所以看得有限,希望如果有接觸過不同開發面向的朋友也能分享經驗。"><meta itemprop="datePublished" content="2023-06-07T23:00:00+08:00" />
<meta itemprop="dateModified" content="2023-06-07T23:00:00+08:00" />
<meta itemprop="wordCount" content="12519">
<meta itemprop="wordCount" content="12574">
<meta itemprop="keywords" content="" /><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="手機營運類遊戲筆記"/>
<meta name="twitter:description" content="因為之前接觸過手機營運類遊戲的開發跟維護,想分享一些心得。我自己工作算是 Unity 前端所以看得有限,希望如果有接觸過不同開發面向的朋友也能分享經驗。"/>
Expand Down Expand Up @@ -478,6 +478,10 @@ <h4 id="浮點數的點不一定是-">浮點數的點不一定是 .</h4>
</span></span></code></pre></td></tr></table>
</div>
</div><p>建議還是治本不要從字串 Parse 出浮點數的設定。</p>
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">REMINDER<br><br>When you parse a float, it takes into account the language on the computer you&#39;re using. <br><br>Some cultures use a period for decimal points, while some use commas. <br><br>More than once have I gotten game breaking bugs due to forgetting about this. <a href="https://t.co/hTvzcQvcpW">pic.twitter.com/hTvzcQvcpW</a></p>&mdash; Fear the Phantom (game in bio) (@Phantom_TheGame) <a href="https://twitter.com/Phantom_TheGame/status/1810984722698326304?ref_src=twsrc%5Etfw">July 10, 2024</a></blockquote>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>


<p>參考資料:</p>
<ul>
<li><a href="https://stackoverflow.com/questions/11260111/german-ui-culture-de-de-decimal-changing-to-comma-value-issue-in-asp-net">https://stackoverflow.com/questions/11260111/german-ui-culture-de-de-decimal-changing-to-comma-value-issue-in-asp-net</a></li>
Expand Down

0 comments on commit fe63f43

Please sign in to comment.