Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8557265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:32:11+00:00 2026-06-11T15:32:11+00:00

C99 states integer types like uint32_t, int16_t etc, where it’s easy to see the

  • 0

C99 states integer types like uint32_t, int16_t etc, where it’s easy to see the number of bits used. Good to know in for instance embedded programming.

I have not found any similar types for floating point values. Is there a standard? If not, why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:32:13+00:00Added an answer on June 11, 2026 at 3:32 pm

    I found the answer in Any guaranteed minimum sizes for types in C?

    Quoting Jed Smith (with corrected link to C99 standard):

    Yes, the values in float.h and limits.h are system dependent. You should never make assumptions about the width of a type, but the standard does lay down some minimums. See §6.2.5 and §5.2.4.2.1 in the C99 standard.

    For example, the standard only says that a char should be large enough to hold every character in the execution character set. It doesn’t say how wide it is.

    For the floating-point case, the standard hints at the order in which the widths of the types are given:

    §6.2.5.10

    There are three real floating types, designated as float, double, and long
    double
    . 32) The set of values of the type float is a subset of the set of values of the type double; the set of values of the type double is a subset of the set of values of the type long double.

    They implicitly defined which is wider than the other, but not specifically how wide they are. “Subset” itself is vague, because a long double can have the exact same range of a double and satisfy this clause.

    This is pretty typical of how C goes, and a lot is left to each individual environment. You can’t assume, you have to ask the compiler.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

C99 standard has integer types with bytes size like int64_t. I am using Windows's
The C99 standard describes them as so: The integer and real floating types are
stdint.h in C99 provides many options for integer sizes, types and ranges - so
I'd like to use the C99 header file inttypes.h in a Visual Studio project
In C99, I include stdint.h and that gives me UINT32_MAX as well as uint32_t
Section 6.3.1.1 of the C99 standard contains: The following may be used in an
Paragraph 6.7.3.8 of the C99 spec states If the specification of an array type
So C99 blessed the commonly-used flexible array member hack to allow us to make
ISO/IEC 9899:TC2 (i.e. the C99 standard), §7.20.3 states: If the size of the space
A number of answers for the Stack Overflow question Getting the IEEE Single-precision bits

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.