BASE Logic, Inc.

Sunday, May 6, 2012

BASE Logic, Inc.

BASE Logic, Inc.

Link to 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 [...]

No comments: