Affects Version/s: None
Fix Version/s: 3.0
The examples page:
Uses a Float type to represent dollar amounts. This is a bad idea--floating point values are not large enough to represent larger transactions and this could teach developers bad habits, especially in enterprise environments.
At the least you should use the Double class in your example.