• Resolved josba

    (@josba)


    Hi everybody,

    we developed some calculators and have now a problem with the decimal place.

    What do we need:
    With the range slider you can change interest rate to get a different result. But we need interest rates in 0.125 steps, 0.125 – 0.250 – 0.375 and so on. But in our case the slider makes 0.130 – 0.250 – 0.380 … so the slider rounds the 0.125 to 0.130. Nice but not needed. I need the exact value.

    I think in the used field we defined everything correct, so I have no idea, how to solve that problem.

    Thanks in advance.
    Jo

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter josba

    (@josba)

    RESOLVED!

    HI everybody,

    we got it: in row 4089 in assets/js/fields.js

    return Number((value).toFixed(2));

    If you change 2 to 3, the slider doesn’t round after 2 digits anymore.

    Jo

    • This reply was modified 9 years, 7 months ago by josba.
    Plugin Contributor christiechirinos

    (@christiechirinos)

    Hi josba,

    Thanks for using Caldera Forms, and for reporting this issue – and then sharing the solution with us. I’ll make sure that this gets added to our Caldera Forms documentation should anybody else in the future have this question.

    By the way, if you ever need any help with Caldera Forms, please do not use this forum, instead open a support ticket at https://CalderaWP.com/support or if you find a bug, please open an issue at https://github.com/CalderaWP/Caldera-Forms/issues. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Range slider value precision’ is closed to new replies.