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 requirement.

Can anyone please help on this.

Thanks,
Pravin

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/8a94cad5-0cef-4959-97f3-534533f99dc0n%40googlegroups.com.

Reply via email to