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 [...] |
| 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., 20 West Kinzie, Chicago IL USA 60610 | |
No comments:
Post a Comment