* 1.234 != 1.236 with a currency precision of 2 decimal points
* 1.300 != 1.200 with a currency precision of 2 decimal points
*
- * @param $value1
- * @param $value2
- * @param $currency
+ * @param int|float $value1
+ * @param int|float $value2
+ * @param string $currency
*
* @return bool
*/
*
* @return string
*/
- protected static function formatUSLocaleNumericRounded($amount, int $numberOfPlaces): string {
+ public static function formatUSLocaleNumericRounded($amount, int $numberOfPlaces): string {
if (!extension_loaded('intl') || !is_numeric($amount)) {
// @todo - we should not attempt to format non-numeric strings. For now
// these will not fail but will give notices on php 7.4