Feld · Amount

Feld · Amount · finance.amount. Generatormethode · Beispiel

finance.amount

Generatoreinstellungen

Erzeuge Daten, um Ergebnisse zu sehen.

Parameter & Beispiel

Generates a random amount between the given bounds (inclusive).

finance.amount(options?: { min?, max?, dec?, symbol?, autoFormat? })
options
An options object.
options.min
The lower bound for the amount. Defaults to 0.
options.max
The upper bound for the amount. Defaults to 1000.
options.dec
The number of decimal places for the amount. Defaults to 2.
options.symbol
The symbol used to prefix the amount. Defaults to ''.
options.autoFormat
If true this method will use Number.toLocaleString(). Otherwise it will use Number.toFixed().

Beispiel

"668.03"

Verwende synthetische Daten in der Testumgebung.

Verwandte Generatoren

Szenarien ansehen