From floating point to fixed point

General discussion on mikroBasic PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Nada123456
Posts: 8
Joined: 07 Aug 2019 11:35

From floating point to fixed point

#1 Post by Nada123456 » 11 Sep 2019 09:39

Hello,

I'm actually working on a program which requires a lot of arithmetics operations so I had to use float variables
The problem is that the CPU load increased so I have to move from floating point to fixed point
Any idea how to do that in mikroC ?

Thank you in advance !

Nada

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: From floating point to fixed point

#2 Post by stefan.filipovic » 12 Sep 2019 13:14

Hi Nada,

There is a Q15 Library in the library manager for operating and working with Q15 fractional number format which might be helpful for you.

Kind regards,
Stefan Filipović

Post Reply

Return to “mikroBasic PRO for dsPIC30/33 and PIC24 General”