Hello Ahn
Please choose the floating Point Library instead. Please open the Project Properties from ‘Project’ menu-> Properties. Then go to C/C++ Build-> Settings, under <Tool Settings> tab, go to S12Z Linker->Input, please replace :
"${MCUToolsBaseDir}/S12lisa_Support/s12lisac/lib_small/ansii.lib"
With:
"${MCUToolsBaseDir}/S12lisa_Support/s12lisac/lib_small/ansif.lib"

I also attached a simple example project for using FRAC16 macro.
Best Regards
Fiona Kuang
Technical Information & Commercial Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------