-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
my code
use separator::Separatable;
fn main() {
// Create a stack-allocated buffer...
// let f = -120000000.34345;
let x : u128 = 271828182845904523;
// Prints "-12,000,000.34345"
// println!("{}", f.separated_string());
println!("{}", &x.separated_string());
}
next is error info:
error[E0599]: no method named `separated_string` found for type `u128` in the current scope
--> src/main.rs:15:24
|
15 | println!("{}", &x.separated_string());
| ^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0599`.
error: Could not compile `numfmt`.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels