0

Hi,

This is my excel sheet
B
1. marks
2. 50.65

my php code is:

$marks  = round($Worksheet->Cells->Item($i,2),0);
           echo $marks;

output is:
50 (wrong output)

I need the output: 51 . How to check this using php coding? Thanks in advance

4
Contributors
5
Replies
6
Views
6 Years
Discussion Span
Last Post by almostbob
-1

What you told ? I tried this before itself.My value is not getting it round off.

Votes + Comments
be polite, the one asking for help should not attack any offers of help
0

"Karthik_pranas" is right it's working fine you need to just round() value.. I trying this my self..

0

Hi,
I am getting values from my excel (ie) 50.65. calling in the php ...round is not working.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.