필드 · Amount

필드 · Amount · finance.amount. 생성 메서드 · 예시

finance.amount

생성 설정

데이터를 생성하면 결과가 표시됩니다.

매개변수 & 예시

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().

예시

"668.03"

테스트 환경에서 합성 데이터를 사용하세요.

관련 생성기

시나리오 탐색