add amount.mli
This commit is contained in:
parent
58bce4efa2
commit
9b760b436f
5 changed files with 48 additions and 17 deletions
|
|
@ -30,12 +30,9 @@ let () =
|
|||
let () =
|
||||
let open Types.Amount in
|
||||
let v =
|
||||
{
|
||||
sign= Some `Plus;
|
||||
currency= `Eur;
|
||||
value= Int64.of_int 25;
|
||||
fraction= Int32.of_int 678;
|
||||
}
|
||||
Amount.make ~sign:(Some Amount.Sign_plus) ~currency:"EUR"
|
||||
~value:(Int64.of_int 25) ~fraction:(Int32.of_int 678)
|
||||
|> Result.get_ok
|
||||
in
|
||||
let s = to_string v in
|
||||
let v' = of_string s |> Result.get_ok in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue