srinivas6203 Posted February 25, 2015 Share Posted February 25, 2015 Hi I have one problem to calculate number equation using php. How can i calculate the following equation using php (((1000)11.11%)+((1000)65.66%)65.63%)/((56425)87.87%) I want final value. Can any one tell me pls. Thanq Link to comment https://forums.phpfreaks.com/topic/294887-needs-help-on-php-calculation/ Share on other sites More sharing options...
Barand Posted February 25, 2015 Share Posted February 25, 2015 Add in some multiplication operators and divisions by 100 Link to comment https://forums.phpfreaks.com/topic/294887-needs-help-on-php-calculation/#findComment-1506693 Share on other sites More sharing options...
srinivas6203 Posted February 25, 2015 Author Share Posted February 25, 2015 Hi Barand Thanx for ur reply. But these type of equations comes from database dynamically. According to u, can you give me some code snippets. Thanq Link to comment https://forums.phpfreaks.com/topic/294887-needs-help-on-php-calculation/#findComment-1506695 Share on other sites More sharing options...
Barand Posted February 25, 2015 Share Posted February 25, 2015 ((x)n%) would be ($x * $n /100) Link to comment https://forums.phpfreaks.com/topic/294887-needs-help-on-php-calculation/#findComment-1506696 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.