- I was supposed to be able to use
$"FPS: {frameCount / timeDelta : F1}"
, but Unity is upset because “that feature is not available in C#4.0”. - I had no choice but to convert it using toString.
- $ - String Interpolation (C# Reference) | Microsoft Docs
- [standard numeric format string | Microsoft Docs https://docs.microsoft.com/ja-jp/dotnet/standard/base-types/standard-numeric-format-strings# FFormatString]
JS
This page is auto-translated from /nishio/floatをいい感じに表示する using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.