File: sumofmoney.mli

package info (click to toggle)
misery 0.2-1.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 380 kB
  • ctags: 298
  • sloc: ml: 1,295; xml: 180; makefile: 94
file content (25 lines) | stat: -rw-r--r-- 990 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
type amount
type default_units_amount

val create : int (* default units *) -> string -> amount

val to_string : amount -> string

val is_negative : amount -> bool
val zero_default : default_units_amount
val zero : amount
val abs_default : default_units_amount -> default_units_amount
val add : amount -> default_units_amount -> default_units_amount
val add_default : default_units_amount -> default_units_amount -> default_units_amount
val negate : amount -> amount
val negate_default : default_units_amount -> default_units_amount
val subtract_default : default_units_amount -> default_units_amount ->
		       default_units_amount
val scale_default : float -> float -> default_units_amount ->
                    default_units_amount
val to_string_default : default_units_amount -> string
val non_negative_default : default_units_amount -> bool
val very_negative_default : default_units_amount -> bool
val default_to_normal : default_units_amount -> amount
val is_zero : amount -> bool