29.11.2021, 08:32
Use this (.2 specifies the number of decimals):
Code:
value_num = 12.3456
value_str = string.format('%0.2f', value_num)|
String format
|
|
« Next Oldest | Next Newest »
|
| Messages In This Thread |
|
String format - by sashhun - 29.11.2021, 08:28
RE: String format - by Daniel - 29.11.2021, 08:28
RE: String format - by admin - 29.11.2021, 08:32
RE: String format - by sashhun - 29.11.2021, 08:34
|