fprice2

Crates.iofprice2
lib.rsfprice2
version0.1.1
sourcesrc
created_at2024-09-14 17:12:28.078275
updated_at2024-09-16 10:53:18.103396
description3자리 마다 콤마 찍어주는 api
homepagehttps://github.com/YoungHaKim7/fprice2
repositoryhttps://github.com/YoungHaKim7/fprice2
max_upload_size
id1374945
size9,606
Global Young (YoungHaKim7)

documentation

README

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;
Commit count: 0

cargo fmt