totalRamDevice function

int totalRamDevice(
  1. int physicalRamSize
)

Converts a physical RAM size in megabytes to a bucketed GB value (2, 4, or 6) matching common marketed device RAM sizes.

Implementation

int totalRamDevice(int physicalRamSize) =>
    roundDouble(physicalRamSize / 1024, 1);