r/godot•
Drillur

Is there a number-format/notation function someone has made available for us?

I can't find anything. Every script in my game's language is GDScript, but I assume if I got a number_format function in C#, they'd still be compatible somehow.

To be clear, I'm talking about some kind of open source or github thing someone's made that takes a huge float (like 10239102912313) and returns a string in some kind of notation, like engineering or scientific. I don't know what terms apply to this.

Anyone have any tips?

Posted Mar 12, 2020, 6:04 AM UTC · edited

520
Loading comments…