fixed number format on moon worth
This commit is contained in:
@@ -150,11 +150,13 @@ class MoonsController extends Controller
|
|||||||
$secondOre, $secondQuantity,
|
$secondOre, $secondQuantity,
|
||||||
$thirdOre, $thirdQuantity,
|
$thirdOre, $thirdQuantity,
|
||||||
$fourthOre, $fourthQuantity);
|
$fourthOre, $fourthQuantity);
|
||||||
|
$totalGoo = number_format($totalGoo, 2, ".", ",");
|
||||||
|
|
||||||
$totalWorth = $moonCalc->SpatialMoonsTotalWorth($firstOre, $firstQuantity,
|
$totalWorth = $moonCalc->SpatialMoonsTotalWorth($firstOre, $firstQuantity,
|
||||||
$secondOre, $secondQuantity,
|
$secondOre, $secondQuantity,
|
||||||
$thirdOre, $thirdQuantity,
|
$thirdOre, $thirdQuantity,
|
||||||
$fourthOre, $fourthQuantity);
|
$fourthOre, $fourthQuantity);
|
||||||
|
$totalWorth = number_format($totalWorth, 2, ".", ",");
|
||||||
|
|
||||||
return view('moons.displayTotalWorth')->with(['totalWorth' => $totalWorth, 'totalGoo' => $totalGoo]);
|
return view('moons.displayTotalWorth')->with(['totalWorth' => $totalWorth, 'totalGoo' => $totalGoo]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user