2 releases

0.1.1 Sep 16, 2024
0.1.0 Sep 14, 2024

#141 in Value formatting

Download history 335/week @ 2024-09-13 43/week @ 2024-09-20 19/week @ 2024-09-27 2/week @ 2024-10-04

59 downloads per month

MIT license

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

No runtime deps