BASE Logic, Inc. | |
| Java float precision changes when unexpectedly up-casting to double Posted: 05 May 2012 05:15 AM PDT TweetI ran across a little gotcha today where a float value being inserted into another object container (JSONObject) was not holding the precision of the original value. The JSONObject actually takes a double not a float, and I overlooked the up-casting initially until I started unit testing. (have to love unit tests!) here is a print … Continue reading Java float precision changes when unexpectedly up-casting to double |
| You are subscribed to email updates from BASE Logic, Inc. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
| Google Inc., 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States | |
No comments:
Post a Comment