29.11.2021, 08:28
Hello. Help format the string result. There is a value of 2.24000000001 how to limit the display of only two symbols after a point so that the result would be 2.24?
String format
|
29.11.2021, 08:28
Hello. Help format the string result. There is a value of 2.24000000001 how to limit the display of only two symbols after a point so that the result would be 2.24?
29.11.2021, 08:32
Use this (.2 specifies the number of decimals):
Code: value_num = 12.3456
29.11.2021, 08:34
|
« Next Oldest | Next Newest »
|