Crates.io | fprice2 |
lib.rs | fprice2 |
version | 0.1.1 |
source | src |
created_at | 2024-09-14 17:12:28.078275 |
updated_at | 2024-09-16 10:53:18.103396 |
description | 3자리 마다 콤마 찍어주는 api |
homepage | https://github.com/YoungHaKim7/fprice2 |
repository | https://github.com/YoungHaKim7/fprice2 |
max_upload_size | |
id | 1374945 |
size | 9,606 |
financial_price_indication
let mut price_comma = PriceComma::new(0, "".to_string()) ;
price_comma.push(11111178);
println!("{}", price_comma.fmt_number();
(fn new)i32 Formatted number: 11,111,178
fn fmt_number(&self) -> String;
fn big_num_i64_str(&self) -> String;
fn fmt_num_f64_str(&self) -> String;
fn fmt_num_str(&self) -> String;