static double toDecimal(String? priceInLong, int factor) { int intValue = int.parse(priceInLong ?? '0'); return intValue / factor; }