DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR RUST
rust convert floating point number, to a string, with decimal digits.
let s = format!("{:.2}", x);
PREVIOUS
NEXT
Tagged:
#rust
#convert
#floating
#point
#decimal
ADD COMMENT
Topic
COMMENT
Name
4+5 =
Submit