Very Simple Question
#1

Hey I have a Question, I'd appreciate it if you don't link me to the Search button because I did search and found nothing, however, if you are able to find something similar to this that was answered please link me.

Simple easy question though.

Is it possible in a string where I put the %f to make it in such a way that it doesnt display the numbers after the period without creating a whole new string?
(Example: 5.005235 becomes 5)
Reply
#2

do like %.3f

that will round to 3 deciaml places in c it should do the same for pawn
Reply
#3

Quote:
Originally Posted by Micro [Lethotas.com
]
(Example: 5.005235 becomes 5)
https://sampwiki.blast.hk/wiki/Floatround
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)