mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
Wrong unit conversion in the example #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @floating-cat on GitHub (Feb 3, 2024).
Link: https://pkl-lang.org/main/current/language-tutorial/03_writing_a_template.html#typed-objects-properties-and-amending
It has a pkl configuration using
bandwidthRequirementPerSecond = 50.mib.toUnit("mb"), but it outputbandwidthRequirementPerSecond = 50.mbwhen evaluating.It should be
bandwidthRequirementPerSecond = 52.4288.mb.