What Does (float) do ?
in
Programming Questions
•
6 months ago
Hey, guys I have a burning question to ask, which I couldn't find the answer on internet.
I have been reading
Learning Processing by Daniel Shiffman for a week now. I liked the book, much better than
Getting Started with Processing I think.
However, after I got to the image chapter I came across with a line of code that the book hadn't mentioned yet.
- float adjustBrightness = ((float) mouseX / width) * 8.0;
Could someone enlighten me about what that float in parenthesis exactly does? I searched the web page but couldn't find a clue.
1