Comment on Tutorial - float vs double data types in Java By Baski
Comment Added by : George
Comment Added at : 2015-01-31 06:25:18
Comment on Tutorial : float vs double data types in Java By Baski
The precision statement applies to numbers that have a large number of digits on either or both sides of the decimal point. The range of the opacity value is 0 to 1, which granted, could contain a value that exceed the floats ability to precisely hold it, but you would never be able to tell the difference and I would be quite surprised to find that value ever used in iterative calculations. By turning it into a percentage it may be easier to see why. The opacity can be set from 0% to 100%. So if you want to change it from 64% to 63% for example, the float would be .63 and doesn't need any more precision than that as your eye would have great difficulty seeing any discernible difference beyond that. Even if you got really picky and wanted to be able to set your opacity to 63.937364 percent and for another object set it to 63.937365 you would #1 - never ever be able to tell the difference and #2 - you will still not have come even close to exceeding that precision for which the float is capable of holding.
- Data Science
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews
Subscribe to Tutorials
1. thats is really too gud... very easy example to un
View Tutorial By: radhika at 2011-11-27 16:32:25
2. Clear explanation and clear architecture diagram..
View Tutorial By: safiya begam at 2011-05-09 06:28:51