#(LG_Legacy) Integer short display.

16 messages · Page 1 of 1 (latest)

ashen gale
#

I'm attempting to make a procedure that will take the integer I provide and return it into a short form, such as 100k 150m 10.5k etc.

I have made a procedure already but I feel like it could be written better, and I almost want to request it to be a tag as well but I feel a procedure would be a better fit.

https://paste.denizenscript.com/View/113915

strange hazelBOT
#

(LG_Legacy) Integer short display.

strange hazelBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

ashen gale
#

Kind of oopsie'd with the length being 4 but it's fine.

ashen oyster
#

maybe use number_format[##0.#E0] and then replacing the E0/E3/E6/etc with the respective suffix?

oblique nova
#

im using one inspired by icecapades

ashen gale
ashen gale
oblique nova
#

oh oop ye

#

was using parsed_key first

#

then remembered about data_key and forgot to remove static handler hehe

ashen gale
#

Also you don't need to define the script name if it's the current script, can just do <script.data_key[blah]> etc

oblique nova
#

was defining because of static thingo

ashen gale
#

Ah.

oblique nova
#

thanks for reminding me tho :D