Forum Discussion
aikeu
Regular Contributor
3 years agoHi abaxor,
hls_float <8, 23> s_tanf is using IEEE 754 single-precision (binary32), 32bit to represent the data in binary value:
https://www.geeksforgeeks.org/ieee-standard-754-floating-point-numbers/
As for the ac_int and ac_fixed convertion, you can refer better to the below:
You can use any online IEEE-754 Floating Point Converter to test out the results of value you would like to convert and check if you are getting the correct output in your code based on how the value is defined with ac_int/ac_fixed.
Thanks.
Regards,
Aik Eu