Math

Answered

Using Maths part

Hi Team,

1. Can i use Maths part only for numbers and nothing else

2. It is converting on the go. Can we postpone that to only convert when we call it to convert?

Regards,

Piyush



Best Answer

Dear Piyush,


in your gramar, just allow the recognition of digits and dot, that should be fine: symbol = 0 1 2 3 4 5 6 7 8 9 .

Best regards,

Olivier



Dear Piyush,

Thank you for your questions. To answer these:
1- You can indeed use the Math part to recognize only numbers. To get the best of the recognition, we recommend you create a custom gramar definition, which will only support digits as symbols: https://developer.myscript.com/docs/interactive-ink/1.3/android/advanced/build-custom-resources/#math
2-For this, you should set the "math.solver.enable" configuration to false: conf.setBoolean("math.solver.enable", false); Conversion will then only happen when requested.

Best regards,

Olivier

Hi Olivier,

Thanks for the reply. However I am still not able to comprehend.

I need a block to understand only numbers and "." basically decimal numbers, and any other number.

Would you be able to help?

Regards,

Piyush

Answer

Dear Piyush,


in your gramar, just allow the recognition of digits and dot, that should be fine: symbol = 0 1 2 3 4 5 6 7 8 9 .

Best regards,

Olivier