NLCJ Posted June 12, 2010 Share Posted June 12, 2010 Hello, After I've been working for a little while I finally made a pretty complicated calculation. And it does give the right answers! The only problem is that it sometimes shows 3 or 4 decimals but other results have waaayyy more. How can I limit this to for example 3 decimal numbers? Regards, CJansen Link to comment https://forums.phpfreaks.com/topic/204577-maximum-decimal-number/ Share on other sites More sharing options...
NLCJ Posted June 12, 2010 Author Share Posted June 12, 2010 Okay, at first I was Googling on how to do this, but couldn't find the answer. After asking it here I thought of a different search term and I found at that this can be set with number_format. Thanks a lot though! Link to comment https://forums.phpfreaks.com/topic/204577-maximum-decimal-number/#findComment-1071158 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.