Repository navigation
Supporting Float natively rather than converting it to Double for arithmetic operations - #114
satyapalreddy wants to merge 1 commit into
Conversation
Supporting Float natively rather than converting it to Double
|
Without any source code changes, I first added about 28 test cases involving floats and doubles. Among the newly added test cases (to SpringEL300Tests), the following 6 test cases failed: SPR_9486_floatFunctionResolverTest e.g. SPR_9486_subtractFloatWithFloatTest which subtracts two floats. The output in plain java seem different than when evaluated by SpEL |
|
Pull request looks fine to me. Basically we were previously (deliberately) just dropping down to double whenever a number when non-literal. Obviously this has the downsides as indicated in the original jira. I'm ok with adding in float literal support. |
|
Thanks, Andy. I've scheduled SPR-9486 for 3.2 M2 and will get this merged in. |
# By Satyapal Reddy * SPR-9486: Add SpEL support for float literals
|
Thanks Satyapal. As you may have already noticed, this is now available in both 3.1.3 and 3.2 snapshots. |
I have signed and agree to the terms of the SpringSource Individual Contributor License Agreement.