Examples
July 14, 2025 ยท View on GitHub
Data Size Conversion Examples
-
Bytes to KB
kb := BytesToKB(2048) // Output: 2.0 -
KB to Bytes
bytes := KBToBytes(2.0) // Output: 2048 -
Bytes to MB
mb := BytesToMB(1048576) // Output: 1.0 -
MB to Bytes
bytes := MBToBytes(1.0) // Output: 1048576
Time Conversion Examples
-
Seconds to Minutes
minutes := SecondsToMinutes(120) // Output: 2.0 -
Minutes to Seconds
seconds := MinutesToSeconds(2) // Output: 120
Temperature Conversion Examples
-
Celsius to Fahrenheit
fahrenheit := CelsiusToFahrenheit(0) // Output: 32 -
Fahrenheit to Celsius
celsius := FahrenheitToCelsius(32) // Output: 0