Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 809 Bytes

File metadata and controls

47 lines (36 loc) · 809 Bytes

Examples

Data Size Conversion Examples

  1. Bytes to KB

    kb := BytesToKB(2048) // Output: 2.0
  2. KB to Bytes

    bytes := KBToBytes(2.0) // Output: 2048
  3. Bytes to MB

    mb := BytesToMB(1048576) // Output: 1.0
  4. MB to Bytes

    bytes := MBToBytes(1.0) // Output: 1048576

Time Conversion Examples

  1. Seconds to Minutes

    minutes := SecondsToMinutes(120) // Output: 2.0
  2. Minutes to Seconds

    seconds := MinutesToSeconds(2) // Output: 120

Temperature Conversion Examples

  1. Celsius to Fahrenheit

    fahrenheit := CelsiusToFahrenheit(0) // Output: 32
  2. Fahrenheit to Celsius

    celsius := FahrenheitToCelsius(32) // Output: 0