FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 1311 : problems with dividing
Last modified: 2009-08-25 12:45
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
Fielding
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2009-08-25 12:43
Hello,
I got problems with divding. Maybe this your intention, but i think its a bit strange.
For example:
float r = 5/10;
println(r);
the output is: 0.0 instead of 0.5
Additional Information:
version number: 1.0.6
Additional Comment
#1 From fry 2009-08-25 12:45
http://processing.org/reference/troubleshooting/#integers