code-distortion/realnum
RealNum gives PHP arbitrary-precision real numbers, avoiding floating-point rounding errors. Do accurate arithmetic, comparisons and formatting with a simple, fluent API—ideal for prices, measurements and any calculation where precision matters.
RealNum brings accurate real number handling to PHP, sidestepping the rounding errors of native floats. It wraps arbitrary-precision maths in an intuitive value object, so decimals can be added, subtracted, multiplied and divided with confidence.
RealNumber objects with a fluent APIHow can I help you explore Laravel packages today?