Natural Logarithm calculation with decimal point

  • Profile Image
    GBCInc
    Asked on July 09, 2016 at 07:51 PM

    Hello,

    I see that you have a Natural Log function here:  http://www.jotform.com/form-templates/get-logarithm-log-form

    However it looks like it is calculated to 2 decimal places only and was an excellent volunteer effort by user Elton Cris:

    http://www.jotform.com/form-templates/user/EltonCris

    I appreciate the effort by this user and dont want to burden him so is there a way i could get advice on how i could modify this template with his permission so i may extend this to 10 decimal places?  Please let me know.  I am trying to use it in a medical form which needs a higher level of precision.

    Alternately, it looks like the template above is part of your calculation widget's log() function.  Would there be a way to extend that function to 10 digits?  Thank you!

  • Profile Image
    Chriistian
    Answered on July 09, 2016 at 11:29 PM

    Hi,

    Yes, it is possible to extend the result to 10 digits. First, use the template and follow the steps below.

     

    The result should be as follows.

     

    You can check and clone my form here: https://form.jotform.com/61909002953960. Please see How to clone an existing form from a URL for more details.

  • Profile Image
    GBCInc
    Answered on July 10, 2016 at 01:36 AM

    Hello,

     

    Thank you so much.  We used the ption you mentioned for other fields but are unable to do so for some CONDITONAL fild.  It looks like the problem is only with conditional fields or we are not able to find the place to change the decimals.  Can you please look at this example and advise?  If we have to change code, i am happy to try it!

     

    https://form.jotform.com/61910853605152

  • Profile Image
    GBCInc
    Answered on July 10, 2016 at 03:00 AM

    We think we figured it out now.  Please see beow on what we did, so everyone benefits:

    Create the Condition with the Calculated Field and click on the three dots near the bottom right:

    You will see the following screen. Select the Log() function for Natural Logarithm and click Options:

    On the Options screen, you can increase the decimals to 10:

  • Profile Image
    Nik_C
    Answered on July 10, 2016 at 05:36 AM

    I'm sorry but we are unable to see that images you uploaded, please refer to this guide on how to insert pictures in the thread.

    Please try again.

    Thank you!

  • Profile Image
    GBCInc
    Answered on July 10, 2016 at 02:57 PM

    Sure thing--here is a single image that covers the process:

     

    https://cms.jotform.com/uploads/image_upload/image_upload/GBCInc/37702_NaturalLog.png

    raja

  • Profile Image
    Mike
    Answered on July 10, 2016 at 05:49 PM

    The screenshot has been received. Thank you for sharing your solution.