nanni12300 Posted September 5, 2007 Share Posted September 5, 2007 HI I WANTED TO CONVERT A NUMBER WHICH IS ABOVE 5 AFTER DECIMAL POINT TO A NUMBER WHICH IS INCREMENTD BY ONE LIKE IF 26.5 TO 27 14.8 TO 15 13.3 TO 13 IS THERE ANYWAY TO DO THAT PLEASE DO TELL ME I AM WAITING THANK YOU IN ADVANCE Link to comment https://forums.phpfreaks.com/topic/68044-solved-want-255-to-26/ Share on other sites More sharing options...
vijayfreaks Posted September 5, 2007 Share Posted September 5, 2007 Hi.. see the round function for this.. echo round(3.5); will result in 4.. its bit differ from ur result u want above 5.. probably for that you have to go for user defined function.. and you have to define your own logic.. -Vijay Link to comment https://forums.phpfreaks.com/topic/68044-solved-want-255-to-26/#findComment-342020 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.