Ask coding questions

← Back to all posts
How do I make it so that I can round the answer
SeseiFlexFlex (10)

Plz help idk how i can make it so that the data, texts and pictures are rounded to 2dp

Geocube101 (605)

Python's built in round function
round(number[, ndigits]) Where number is the number to round and ndigits is the places to round to

(Note: ndigits is optional)


round(5.5555, 2) #Returns 5.56