convertBytesToKB function

double convertBytesToKB(
  1. int bytes
)

Converts bytes to kilobytes (KB).

Parameters:

  • bytes (int): The number of bytes to convert.

Returns:

  • double: The equivalent size in kilobytes.

Implementation

double convertBytesToKB(int bytes) => bytes / 1024;