Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Zoho Docs
Google Docs
Each Attachment size should not exceed 1MB.
Max no of attachments : 0
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
New to this Portal?
Click on Join Now to Sign Up
Join Now
Help
Feedback
Sign In
Processing Forum
Recent Topics
All Forums
Search All
Tags
Author
Advanced Search
Search
New Topic
Move this topic
Forum :
Share your Work
Programming Questions
Core Library Questions
Contributed Library Questions
Android Processing
Processing with Other Languages
Integration and Hardware
Library and Tool Development
Events and Opportunities
General Discussion
Sub forum :
Move this topic
Cancel
Programming Questions
clankill3r
844 / 0.95813495 is higher then 844
in
Programming Questions
•
8 months ago
how can this be higher then 844?
float index = (float)844 / 0.95813495;
println(index);
println((int) index);
The difference is 36.
1
Reply
Replies(5)
elordini
Re: 844 / 0.95813495 is higher then 844
8 months ago
Try it out in excel. When you divide a whole number by a fraction between 0 and 1 (but not including those), the result is larger than your original whole number. E.g., 2 / .5 = 4
Leave a comment on elordini's reply
v.k.
Re: 844 / 0.95813495 is higher then 844
8 months ago
dividing this way is like multiplying and multiplying is like dividing,
so
2 / 0.5 = 4 like ( 2*2)
2 / 0.25 = 8 like (2*4)
and
2 * 0.5 = 1 like (2/2)
2* 0,25 = 0.5 like (2/4)
very useful... for instance, for percentages.
Leave a comment on v.k.'s reply
clankill3r
Re: 844 / 0.95813495 is higher then 844
8 months ago
haha i had to use a *
i was thinking
844 / 1 = 844
844 / 0 = 0 (althought not possible, devision by zero)
so the rest must be inbetween..
:)
Leave a comment on clankill3r's reply
PhiLho
Re: 844 / 0.95813495 is higher then 844
8 months ago
844 / 0 doesn't give 0, it gives infinity...
Leave a comment on PhiLho's reply
clankill3r
Re: 844 / 0.95813495 is higher then 844
8 months ago
that's what i meant with
(althought not possible, devision by zero)
but your true :)
Leave a comment on clankill3r's reply
Change topic type
Topic Type :
Discussions
Questions
No of days :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Change topic type
Cancel
Link this topic
Provide the permalink of a topic that is related to this topic
Permalink
Save
Close
Reply to clankill3r's question
Top
Reply
{"z4085862":[25080000001746013],"z4289448":[25080000001744361],"z4106163":[25080000001744342,25080000001744395,25080000001744559],"z21893481":[25080000001744353]}
Statistics
5
Replies
331
Views
0
Followers
Tags
No tags available for this topic.
Cancel
Actions
Permalink
Related Posts
Make a movable object (player) turn...