none
small basic

    Question

  • I am very new to small basic programming.

    after calculations the answers have lots of decimal places.

    is there a way to reduce the decimal place to 2

    Tuesday, April 8, 2014 11:03 AM

Answers

  • The answer can be handled like a string and you can take a part of that with the Text.GetSubtext command. Look at the explanation.

    If you want to round the answer to two digits after the decimal point, use Math.Round(answer*100)/100


    Jan [ WhTurner ] The Netherlands

    Tuesday, April 8, 2014 11:17 AM
    Answerer

All replies

  • The answer can be handled like a string and you can take a part of that with the Text.GetSubtext command. Look at the explanation.

    If you want to round the answer to two digits after the decimal point, use Math.Round(answer*100)/100


    Jan [ WhTurner ] The Netherlands

    Tuesday, April 8, 2014 11:17 AM
    Answerer
  • thank you Jan

    that worked for me

    keith

    Tuesday, April 8, 2014 8:01 PM