lucene - Increment decimal position in Solr -


making field "float" fieldtype converts source data 50 50.0 in response.

is there way make 50.00 tweaks in schema??

this responsibility better handled in display layer in response solr (and far know, can't define round operation performed when value retrieved). floating point values inherently non-exact, different number 50.0 end 48.99999999999997, etc. precision changes depending on how large numbers are.

perform rounding in display layer before displaying values user.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

Kivy: Swiping (Carousel & ScreenManager) -

jdbc - Not able to establish database connection in eclipse -