Note:
- Changing this would technically be a breaking change and/or may be undesirable for performance reasons, in which case the issue should be documented.
When converting from strings,
Update: The same applies to PowerShell's number-data-type suffixes such as d for [decimal] and l for [long].
Environment data
Written as of:
PowerShell Core 6.1.0-preview.4
Note:
When converting from strings,
PowerShell currently DOES recognize binary-multiplier suffixes such as
kb,mb, ...:'1gb' / 1)but DOES NOT recognize them:
during implicit type conversion in then context of parameter binding (e.g.,
& { param([int] $foo) } '1gb')(perhaps less surprisingly) in explicit type conversions with casts (e.g.,
[int] '1gb')Update: The same applies to PowerShell's number-data-type suffixes such as
dfor[decimal]andlfor[long].Environment data
Written as of: