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 8550345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:55:47+00:00 2026-06-11T13:55:47+00:00

Could you please explain double hex number representation that uses ‘p’ character : 0x1.5p10

  • 0

Could you please explain double hex number representation that uses ‘p’ character :

0x1.5p10 or 0x1P-1

Thank you in advance.

  • 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-11T13:55:48+00:00Added an answer on June 11, 2026 at 1:55 pm

    This actually isn’t specific to Objective-C; it’s a standard feature inherited from C. It provides a way to write floating-point numbers without rounding. It is clearly documented in the C standard, but here’s a quick overview:

    Hexadecimal floating-point literals have the form 0x[significand]p[exponent], where [significand] is a hexadecimal number, and [exponent] is a base-10 integer. The number has the value [significand] x 2^[exponent].

    So, for example:

    0x1.5p10 = (1 + 5/16) x 2^10 = 1344.0
    0x1p-1 = 1 x 2^-1 = 0.5
    

    These examples aren’t particularly interesting, because they can both easily be written exactly as decimal floating-point literals as well. The notation gets more interesting as the exponent gets more extreme. For example, consider the largest finite double-precision number: 0x1.fffffffffffffp1023 in hexadecimal floating-point. Writing it exactly in decimal gives us:

    179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0
    

    which is rather cumbersome.

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

Sidebar

Related Questions

Could somebody please explain or link to a resource that will tell me why
Curious to know how sendBroadcast works internally, and if someone could please explain that
Could you please explain me purpose and usage of LauncherActivity? Documentation says that it
Wondering if someone could please explain the difference between these two queries and advise
Could someone please explain why this is happening? var y = new int[]{1,2}; Console.WriteLine(y
Could someone please explain this weird phenomenon: http://jsfiddle.net/sPA2V/ For some reason, the box footer
Could somebody please explain what this notation is in javascript? What is function(d) doing?
Could someone please explain when would I want to use delegation instead of inheritance?
Could you please explain what is an Assembly in C# or .NET? Where does
Could you please explain why this code is not syntactically correct? private void addEditor(final

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.