Skip to main content

parse_binary_number

Function parse_binary_number 

Source
pub fn parse_binary_number(input: &str) -> Result<u64, String>
Expand description

Parse a human-friendly number with binary (IEC) suffixes.

  • k / K = ×1,024
  • M = ×1,048,576
  • G = ×1,073,741,824

Used for byte sizes where binary multipliers are conventional.