Thameera
1 year ago
215
3
Laravel

Update a float column value results rounding off

Posted 1 year ago by Thameera

I am saving float value into the database through laravel controller but it saved as rounded value,

  $remain=$avail-($needed*$unit);

here is my code even i changed it to fixed value but it rounded and saved to database

Please sign in or create an account to participate in this conversation.