Answers for "round off value to 3 decimal places in python3"

3

round off float to 2 decimal places in python

answer = str(round(answer, 2))
Posted by: Guest on May-24-2020
2

round down decimal python

import math

val = 3.14
math.floor(val) # rounds down --> 3
math.ceil(val) # rounds up val --> 4
Posted by: Guest on June-16-2020

Code answers related to "round off value to 3 decimal places in python3"

Python Answers by Framework

Browse Popular Code Answers by Language