Liking cljdoc? Tell your friends :D

dinero.core


*default-currency*clj

source

*default-rounding-mode*clj

source

configclj

source

fast-money-max-scaleclj

source

fast-money-ofclj

(fast-money-of)
(fast-money-of amount)
(fast-money-of amount currency)

Creates a fast monetary amount with the given amount and currency.

Creates a fast monetary amount with the given amount and currency.
sourceraw docstring

fast-money?clj

(fast-money? money)

Returns true if the given value is a monetary amount of type FastMoney.

Returns true if the given value is a monetary amount of type `FastMoney`.
sourceraw docstring

get-amountclj

(get-amount money)

Returns the amount of the given monetary amount.

Returns the amount of the given monetary amount.
sourceraw docstring

get-currencyclj

(get-currency money)

Returns the currency of the given monetary amount.

Returns the currency of the given monetary amount.
sourceraw docstring

get-rounding-modeclj

(get-rounding-mode money)

Returns the rounding mode of the given rounded monetary amount.

Returns the rounding mode of the given rounded monetary amount.
sourceraw docstring

get-scaleclj

(get-scale money)

Returns the scale of the given monetary amount.

Returns the scale of the given monetary amount.
sourceraw docstring

money-ofclj

(money-of)
(money-of amount)
(money-of amount currency)

Creates a monetary amount with the given amount and currency.

Creates a monetary amount with the given amount and currency.
sourceraw docstring

money?clj

(money? money)

Returns true if the given value is a monetary amount of type Money.

Returns true if the given value is a monetary amount of type `Money`.
sourceraw docstring

rounded-money-ofclj

(rounded-money-of)
(rounded-money-of amount)
(rounded-money-of amount currency)
(rounded-money-of amount currency scale)
(rounded-money-of amount currency scale rounding-mode)

Creates a rounded monetary amount with the given amount, currency, scale, and rounding mode.

Creates a rounded monetary amount with the given amount, currency, scale, and rounding mode.
sourceraw docstring

rounded-money?clj

(rounded-money? money)

Returns true if the given value is a monetary amount of type RoundedMoney.

Returns true if the given value is a monetary amount of type `RoundedMoney`.
sourceraw docstring

with-currencycljmacro

(with-currency currency & body)

Evaluates the body with the given currency as the default currency.

Evaluates the body with the given currency as the default currency.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close