util/double_utils library

Extensions

DoubleExtension on double
An extension for the double class providing convenient methods for formatting distances and weights.

Functions

cGetOffer({required double offerPrice, required double ordinalPrice, dynamic round = false, dynamic suffix = ' %', dynamic prefix = ''}) String
Calculates the discount percentage based on the original price and the offer price.