Skip to content

Commit bc1345a

Browse files
authored
add note for setUseIecUnits
1 parent 987de11 commit bc1345a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docs/en/core-libraries/number.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ This mean that:
205205
- 1000 Bytes = 1 KB
206206
- 1024 Bytes = 1 KiB
207207

208-
::: info Added in version 5.4.0
208+
::: info Modified in version 5.4.0
209209
It is now possible to use the byte units defined by the ISO/IEC 80000-13
210210
standard alongside more natural decimal units.
211211
:::
@@ -221,6 +221,11 @@ need to pass the boolean parameter to `Cake\I18n\Number::toReadableSize()` when
221221
switching between decimal units and IEC units. If `$useIec` is defined as true,
222222
IEC units will be employed; otherwise, decimal units will be used.
223223

224+
::: info Added in version 5.4.0
225+
This method has been added to remove the need to pass the optionnal boolean argument
226+
each time IEC units are needed.
227+
:::
228+
224229
## Formatting Numbers
225230

226231
### Number::format()

0 commit comments

Comments
 (0)