For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/css/data-type/number.md.
Lynx
  • English
  • <number>

    The <number> CSS data type represents a number, being either an integer or a number with a fractional component.

    Examples

    Valid numbers

    12          A raw <integer> is also a <number>.
    4.01        Positive fraction
    -456.8      Negative fraction
    0.0         Zero
    +0.0        Zero, with a leading +
    -0.0        Zero, with a leading -
    .60         Fractional number without a leading zero
    10e3        Scientific notation
    -3.4e-2     Complicated scientific notation

    Invalid numbers

    12.         Decimal points must be followed by at least one digit.
    +-12.2      Only one leading +/- is allowed.
    12.1.1      Only one decimal point is allowed.

    Compatibility

    LCD tables only load in the browser

    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.