DecimalFormatter#1
Conversation
|
Thanks for the contribution. This looks pretty good, though it'd be nice to also have support for customized abbreviations for localization purposes, and to have more specialized notations (for logarithmic expressions etc.). Kinda like what Antimatter Dimensions does. also ignore the failed check, it just failed to push to the binary repo |
|
Hey, thanks for the review!
Those are pretty cool! Unfortunately I cannot promise that I'm going to implement this, as for now what I needed was general formatting like I implemented (and mostly inspired by https://crusaders-of-the-lost-idols.fandom.com/wiki/Large_Number_Abbreviations) and adding modular notations like that is way out of scope for my original intended usage :) |
A customizable formatter for
Decimal, with support for abbreviations, full names, separators and even the possibility of displaying the all zeroes.Includes class docs and a benchmark against a version of the formatter in GDScript.
Some features (from the
DecimalFormatterclass docs):Example GDScript: