1
0
mirror of https://github.com/danog/math.git synced 2025-01-22 13:41:12 +01:00

Fix documentation referring to Decimal instead of BigDecimal

This commit is contained in:
Benjamin Morel 2015-06-20 13:45:47 +02:00
parent c1aa379479
commit 20030b6798

View File

@ -46,8 +46,8 @@ class BigDecimal extends BigNumber implements \Serializable
* *
* Note: you should avoid passing floating point numbers to this method. * Note: you should avoid passing floating point numbers to this method.
* Being imprecise by design, they might not convert to the decimal value you expect. * Being imprecise by design, they might not convert to the decimal value you expect.
* This would defeat the whole purpose of using the Decimal type. * This would defeat the whole purpose of using the BigDecimal type.
* Prefer passing decimal numbers as strings, e.g `Decimal::of('0.1')` over `Decimal::of(0.1)`. * Prefer passing decimal numbers as strings, e.g `BigDecimal::of('0.1')` over `BigDecimal::of(0.1)`.
* *
* @param BigNumber|number|string $value * @param BigNumber|number|string $value
* *
@ -464,7 +464,7 @@ class BigDecimal extends BigNumber implements \Serializable
} }
/** /**
* Returns a Decimal with the current value and the specified scale. * Returns a BigDecimal with the current value and the specified scale.
* *
* @param integer $scale * @param integer $scale
* @param integer $roundingMode * @param integer $roundingMode