2 releases
0.1.1 | Sep 16, 2024 |
---|---|
0.1.0 | Sep 14, 2024 |
#141 in Value formatting
59 downloads per month
8KB
152 lines
fprice
financial_price_indication
3자리 숫자마다 콤마(,) 찍어주는 api
Example
let mut price_comma = PriceComma::new(0, "".to_string()) ;
price_comma.push(11111178);
println!("{}", price_comma.fmt_number();
Result
(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;
lib.rs
:
3자리 숫자마다 콤마(,) 찍어주는 api
Example
let mut price_comma = PriceComma::new(0, "".to_string()) ;
price_comma.push(11111178);
println!("{}", price_comma.fmt_number();
Result
(fn new)i32 Formatted number: 11,111,178