How do i make it so there is no floats (lua) | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

How do i make it so there is no floats (lua)

When i try using ints they turn into floats

3rd Jun 2019, 1:21 AM
Phoenix
1 Réponse
0
There are no int or float types in Lua, there is only number type. If you want to remove floating point from number, use "math.floor(your_number)"
7th Aug 2019, 12:26 PM
Qermon
Qermon - avatar