#Multiplier Help
1 messages · Page 1 of 1 (latest)
make a funciton that change the numbers from 1000 to 1k and 10000 to 10k ect.
uhm... i dont wanna be spoonfed but can i have a little more help?
i cant do that
no
thats not even close?
thats just deviding the variable
spelled wrong
and no letter
and it changed the original variable
and then when its saying the variable if its over 999 add K at the end
...
ok lets listen to this
so now if i ask it if its above 1000
what does it say?
lmao
found a snippet in skunity idk if it works
function formatNumber(n: number) :: text:
set {_data} to "QT,18|Q,15|T,12|B,9|M,6|k,3"
loop split {_data} at "|":
set {_s::*} to split loop-value at ","
{_n} >= 10 ^ {_s::2} parsed as number
return "%{_n} / 10 ^ {_s::2} parsed as number%%{_s::1}%"
return "%{_n}%"
it will divide it by 1000 and add a K in the message
so then its not a number
its a text
so if i try to use the multi
it wont do anything
mittens i need ur ign
@cinder nest
rq
ye i saw thx
pls
il try to dissect it
why
you don't need to dissect it bro