Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- number = 9128317.11283718618
- h = tostring(number)
- thenumber = 0
- for i=1,100 do
- if string.sub(h,i,i) == "." then
- thenumber = i
- break
- end
- end
- number = string.sub(h,1,thenumber - 1)
- number = tonumber(number)
- print(number)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement