Compiler error message "../variables/datatypes/float

Hello There!

This statement "float bit_value = 0,005; //5 mV / step.
gives error: "expected unqualified-id before numeric constant"

What is wrong? Please help me!

Hannu

What is wrong?

The separator in a float is called a decimal POINT, not a decimal COMMA.

Difficult if you come from a country where a comma is used :wink: In a number of countries, $1.000,00 means thousand dollars and zero cents.

In a number of countries, $1.000,00 means thousand dollars and zero cents.

Not in a C or C++ application, though.