Hi PRATIBHA,
The S12Z do not have an HW unit for floating point calculation.
The ansif library just emulates floating point operations – therefore it takes too long.
The only reasonable way for S12Z is using Fixed-point fractional numbers (F16 or F32).
The fractional range is [-1, 1).
I hope it helps you.
Have a great day,
Radek
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------