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

  • Home
  • SEARCH
  • 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 7814059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:04:28+00:00 2026-06-02T05:04:28+00:00

I have been doing some reading, and I’m having a tough time understanding how

  • 0

I have been doing some reading, and I’m having a tough time understanding how to interpret something that is a “digits x”.
I.E.

type something is digits 6

I get that it’s 6 digits of precision, but I guess what has me mixed up is what does that mean.

1) Y.XXXXXX (6X’s),

2) XXX.XXX (Any number of digits, just will always be 6 of them counting both fore and aft the mantissa)

…

I’m just trying to understand what a range of something that is digits 6 (or digits n to be more generic), is there a formula I can simply plug into to determine what my ranges are on a type that is some number of digits?

  • 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-02T05:04:29+00:00Added an answer on June 2, 2026 at 5:04 am

    A type declared with digits is a floating-point type, similar to Float or Long_Float.

    The 6 is “the minimum number of significant decimal digits required for
    the floating point type”. For example, all the following will be represented reasonably accurately (but not exactly):

    type My_Real is digits 6;
    X: My_Real := 1.23456;
    Y: My_Real := 12345.6;
    Z: My_Real := 1.23456E7;
    

    In practice, there are usually just 2 or 3 underlying floating-point types on a given system. The compiler will choose an appropriate one as the underlying type for your declaration. In practice, two types declared with digits 2 and digits 6 will probably have exactly the same representation and precision.

    Understanding the phrase “not exactly” requires an understanding of floating-point that’s well beyond the scope of a single question, but if you’re familiar with floating-point in other languages, it’s the same general idea.

    If you want a general understanding of what floating-point is and how it works, the Wikipedia Article isn’t bad. A much more advanced treatment is David Goldberg’s classic paper “What Every Computer Scientist Should Know About Floating-Point Arithmetic”, available here as a web page and here as a PDF.

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

Sidebar

Related Questions

I have been doing some reading and have found out that the Java Swing
I have been doing some reading, and I see that I can use getch()
I've been doing some Web-Projects lately that rely on heavy Data-Binding and have been
I have been doing some catching up lately by reading about cloud hosting. For
I have been doing some reading lately one article I read was from Opera.
I have been doing some reading in preparation for starting my first WCF project
I've been doing some reading recently and have encountered the Law of Demeter. Now
I have been doing some unsafe bitmap operations and have found out that increasing
I have been doing some reading on this subject, but I'm curious to see
I have been doing some reading up on jquery live event and am still

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.