Skip to content

Can not working for u128 #5

Description

@xbee

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions