I have two sets of code one in PHP that i'm trying to get to work and one in C# both show slightly different values.
Below is the C# example:
decimal dayrate = l.dRate * balance / 36500;
Console.WriteLine("dayrate: {0}", dayrate); //dayrate output = 0.0582191780821917808219178082
The PHP example:
$dayrate = $row['dRate'] * $balance / 36500;
echo "Dayrate: $dayrate"; //dayrate output = 0.058219178082192
Why is this and can it be corrected in the PHP example.