#(Haise) number_format tag

35 messages · Page 1 of 1 (latest)

atomic cedar
#

is there a way to create a custom format for that tag? or a custom format in general to like make it when its 10000000 its typed 10mil instead?

outer spokeBOT
#

(Haise) number_format tag

outer spokeBOT
#

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>

atomic cedar
#

format_number*

shut jewel
#

!search format

tawny krakenBOT
# shut jewel !search format
Search Results

[Partial Name Match] !Tag timetag.format, !Tag itemtag.formatted, !Tag elementtag.format, !Tag listtag.formatted, !Tag binarytag.hash, !Mechanism inventorytag.reformat, !Tag locationtag.formatted, !Tag elementtag.end_format, !Tag server.economy.format, !Tag durationtag.formatted, !Tag timetag.format_discord, !Language denizen text formatting, !Tag elementtag.format_number, !Language format script containers, !Tag playertag.formatted_money, !Tag entitytag.formatted_health, !Tag durationtag.formatted_words, !Tag locationtag.simple.formatted, !Tag locationtag.formatted.citizens, !Tag playertag.formatted_food_level, !GuidePage how sample scripts are formatted in this guide,
[Semi-Strong Match] !Command mcmmo, !Command quests,
[Semi-Decent Match] !Command chat, !Command narrate, !Tag &font, !Command log, !Command yaml, !Command action, !Command tablist, !Command debug, !Command sql, !Command if, !Command while, !Tag &hover, !Tag &click, !Tag &score, !Tag binary, !Command actionbar, !Command announce, !Tag &translate, !Tag &gradient, !ObjectType binarytag, !ObjectType scripttag, !ObjectType secrettag, !Command waituntil, !Command effectlib, !Tag &keybind, !Tag &selector, !ObjectType elementtag, ...

shut jewel
#

!tag elementtag.format_number

tawny krakenBOT
shut jewel
#

there's a good 5-10 ways to format that element the way you'd like

atomic cedar
#

any way you know?

ancient karmaBOT
shut jewel
#

five to ten ways? yes

atomic cedar
#

tell me any : D

#

the most convinent would be apperciated

shut jewel
#

if you want to format numbers like Runescape as an example;
1-99999 as they are formatted,
100k-9999k as thousands suffixed with K for thousand, and
10M-2147M as millions suffixed with M for million would be something like:

format_money:
  type: procedure
  definitions: money
  script:
    - if <[money]> < 100000:
      - determine <[money]>
    - else if <[money]> < 10000000:
      - determine <[money].div[1000].round_down>K
    - else:
      - determine <[money].div[1000000].round_down>M```
#

and then <element[2000000].proc[format_money]> would probably return 2000K

#

or <[money].proc[format_money]> if you defined that earlier

atomic cedar
#

oh thanks so much exactly wat i needed

shut jewel
#

try it first, i didn't

atomic cedar
#

ok sure

shut jewel
#

if it doesn't, you may be able to tweak it yourself

#

i mightve forgot a zero or so somewhere

atomic cedar
#

yea just forgot a zero

#

but it works perfectly thanks

shut jewel
#

no prob bob

tardy badgeBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please type </resolved:1028673926114594866> to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@atomic cedar

atomic cedar
#

ty forgot