const sizes = ['K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y'];
var multiplier = sizes.indexOf(value.slice(-1));
if (multiplier === -1) {
	return value;
}
return Number(value.slice(0, -1)) * 1024 * multiplier;