Categories > Coding > Lua >
[HELP] float to int i guess
Posted
Basically I need a way to convert a number like 192.39193192391293912399 to something easy to read like 192.3 or just 192, any way I can do that? also please respond or else im gonna loose my will to code for this day
https://media.discordapp.net/stickers/991374319924035634.png
edit: not math.floor() im working with small numbers
https://cdn.discordapp.com/attachments/967893353750482984/1015562174732718111/unknown.png
i use arch btw
Replied
https://github.com/eb-06/Lua/blob/main/CFrame.lua
U can see the round function in the script, shouldn't be hard to identify.
Edit: might not be what ur looking for nvm
Cancel
Post
https://media.discordapp.net/attachments/1010636204225601659/1012865624797610044/sKQybOLT.gif
Replied
Cancel
Post
i use arch btw
Replied
local a = 1.43453
print(math.floor(a * 10) / 10) -- 1.4
Cancel
Post
https://imgur.com/a/oOomuUo
Replied
https://cdn.discordapp.com/attachments/978212409145708565/1015616249297899590/holy-cow-holy.gif you saved my life!!
Cancel
Post
i use arch btw
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post