A scaled fraction followed by rounding
The generator starts with a value on a continuous interval from the chosen lower bound to the upper bound, then formats it to the requested number of decimal places. Displayed values are therefore rounded representations. At two places, 4.236 becomes 4.24, while 4.234 becomes 4.23; the underlying fractional draw is not preserved as a measurement.
Worked case: a practice price
For a mock price between 0 and 10 with two places, suppose the unrounded draw is 6.817. The screen shows 6.82 because the third decimal digit is 7. Multiplying that displayed price by three units gives 20.46. Multiplying before rounding could instead give 20.45, which illustrates why a real billing rule must state when rounding occurs.
Precision changes the set readers see
Choosing zero places presents whole-number labels, whereas three places can show thousandths. More digits do not make a fictional or random input more accurate; they only make the display grid finer. If a downstream spreadsheet accepts cents, two places may be appropriate. If it uses a physical measurement, its instrument resolution should determine the precision instead.
Not a substitute for an observed quantity
This page does not sample a calibrated device, model uncertainty, or guarantee a particular probability for every rounded label. Endpoints can also behave differently after rounding because their underlying intervals are truncated. Use recorded data and an explicit statistical method for scientific, financial, or safety-related estimates rather than treating a generated decimal as evidence.
State the rounding convention
A value intended for a mock invoice, score, or simulation needs a documented rounding point. Banker's rounding, always-round-up rules, and ordinary half-up rounding can give different cents at a boundary such as 6.825. The random display supplies a value; the receiving system's convention determines how that value should be stored or charged.
Questions about this selection rule
Why is the result shown with trailing zeroes?
Trailing zeroes communicate the requested display precision, so 2.50 is shown as a two-place value.
Can rounding change a calculation?
Yes. A calculation performed on rounded values can differ from one performed on unrounded values.
Does three decimal places mean three significant figures?
No. Decimal places locate digits after the point; significant figures are a separate measurement convention.
Other number formats
All number generators · Random Integer Range · Unique Number Generator