Unable to perform floating point calculation

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
assh_3716096
Level 2
Level 2
First like received First like given

Hi everyone !!!

I created a project and code is not being compiled due to a floating point multiplication. The line that is causing a compilation error is

lux = (1 << Exponent) * 0.01;

Without floating point multiplication, code compiles successfully.

The compilation error generated is

undefined reference to `__aeabi_d2f'

What can be done to solve this issue?

0 Likes
1 Solution

Hi,

Could you please confirm which chip are you using?

The chips like CYW20719 which is CM4 will support float operations.

Thanks,
Anjana

View solution in original post

0 Likes
3 Replies
AnjanaM_61
Moderator
Moderator
Moderator
10 questions asked 5 comments on KBA First comment on KBA

Hi Anjana,

I'm interested in floating point calculations, however example that you pointed to shows how to print floating point numbers.

Thanks,

0 Likes

Hi,

Could you please confirm which chip are you using?

The chips like CYW20719 which is CM4 will support float operations.

Thanks,
Anjana

0 Likes