C251 User's Guide

FLOATFUZZY Compiler Directive

Abbreviation

FF

Arguments

A number from 0-7.

Default

FLOATFUZZY (3)

µVision

Options — C251 — Bits to round for float compare.

Description

The FLOATFUZZY directive specifies the number of bits rounded before comparing floating-point numbers. The default value of 3 specifies that the three least significant bits of a float value are rounded before the comparison.

Example
C251 MYFILE.C FLOATFUZZY (2)

#pragma FF (0)