This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_CBPRINTF_FP_ALWAYS_A

Select %a format for all floating point specifications

Type: bool

Help

The %a format for floats requires significantly less code than the
standard decimal representations (%f, %e, %g).  Selecting this
option implicitly uses %a (or %A) for all decimal floating
conversions.  The precision of the original specification is
ignored.

Selecting this decreases code size when FP_SUPPORT is enabled.

Defaults

No defaults. Implicitly defaults to n.

Symbols selected by this symbol

Kconfig definition

At lib/os/Kconfig.cbprintf:86

Included via Kconfig:8Kconfig.zephyr:41lib/Kconfig:10lib/os/Kconfig:81

Menu path: (Top) → Additional libraries → OS Support Library

config CBPRINTF_FP_ALWAYS_A
    bool "Select %a format for all floating point specifications"
    select CBPRINTF_FP_A_SUPPORT
    help
      The %a format for floats requires significantly less code than the
      standard decimal representations (%f, %e, %g).  Selecting this
      option implicitly uses %a (or %A) for all decimal floating
      conversions.  The precision of the original specification is
      ignored.

      Selecting this decreases code size when FP_SUPPORT is enabled.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)