Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in PHP only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
PHP
converting
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
AsHantoosH
New Member
Join Date:
Feb 2009
Posts:
7
#1
converting
Mar 11 '09, 07:24 AM
I have 100 array elements with floating points then how can i convert floating point to the nearest integer,If the fractional part of the number is greater than .75,
Dormilich
Recognized Expert
Expert
Join Date:
Aug 2008
Posts:
8694
#2
Mar 11 '09, 07:40 AM
I suggest an if condition coupled ceil/floor packed in a function.
[EDIT] if you want to go crazy, you can write your own Iterator class.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment