[go-nuts] How to add zero after a decimal point to float type using decimal lib

2022-10-13 Thread pravin chaudhary
I need to add zeroes after a decimal point to a float type but not able to do so. For instance I have a int value of 500 and need to convert this to 5.00 (type must be float) and need to use decimal lib fmt.Printf("%.2f", value) -> this will do formatting but type is not float which is the re

[go-nuts] How to add zero after a decimal point in float datatype

2022-10-12 Thread pravin chaudhary
I need to add zero after a decimal point to a float datatype but not able to do. Required float value = 5.00 but getting as 5 Datatype should be float only!! Any help will be much appreciated! Thanks, Pravin -- You received this message because you are subscribed to the Google Groups "golan