pic32mz floating point issues

General discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
brandonb
Posts: 105
Joined: 24 Jan 2013 03:24

pic32mz floating point issues

#1 Post by brandonb » 11 Oct 2020 14:36

i'm having issues with fpu output while using variables however if i use direct values the output is correct, has anyone else experienced this ? below is a snippet of the test code. i'm running custom hardware
FPU MATH ERROR.png
FPU MATH ERROR.png (145.4 KiB) Viewed 982 times
as you can see the math for numbers on the right are nowhere close to being accurate.

brandonb
Posts: 105
Joined: 24 Jan 2013 03:24

Re: pic32mz floating point issues

#2 Post by brandonb » 12 Oct 2020 01:01

took about half the day but i converted project over to mplab XC32 compiler and it works as expected... I have a sort of nostalgia working with Mikroc ide/compilers (lots of good memories). But sometimes an overdue change is needed.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: pic32mz floating point issues

#3 Post by filip » 12 Oct 2020 09:42

Hi,

I apologize for the inconvenience, can you please attach minimal project that represents this issue ?

Regards,
Filip.

Post Reply

Return to “mikroC PRO for PIC32 General”