This commit is contained in:
parent
8a4a82bdf7
commit
de6405ab8a
1 changed files with 2 additions and 1 deletions
|
|
@ -84,7 +84,8 @@ let pp =
|
||||||
in
|
in
|
||||||
fun ppf { sign; currency; value; fraction } ->
|
fun ppf { sign; currency; value; fraction } ->
|
||||||
(* TODO
|
(* TODO
|
||||||
this depends on the currency's number of fraction digits *)
|
depends on the currency's number of fraction digits
|
||||||
|
assumes value and fraction are in bounds *)
|
||||||
pf ppf "%a%s:%Ld.%02ld" (Fmt.option pp_sign) sign currency value fraction
|
pf ppf "%a%s:%Ld.%02ld" (Fmt.option pp_sign) sign currency value fraction
|
||||||
|
|
||||||
let to_string = Fmt.str "%a" pp
|
let to_string = Fmt.str "%a" pp
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue