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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:20:51+00:00 2026-05-31T02:20:51+00:00

I understand what a datatype is (intuitively). But I need the formal definition. I

  • 0

I understand what a datatype is (intuitively). But I need the formal definition. I don’t understand if it is a set or it’s the names ‘int’ ‘float’ etc. The formal definition found on wikipedia is confusing.

In computer programming, a data type is a classification identifying one of various types of data, such as floating-point, integer, or Boolean, that determines the possible values for that type; the operations that can be done on values of that type; the meaning of the data; and the way values of that type can be stored.

Can anyone help me with that?

  • 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-05-31T02:20:52+00:00Added an answer on May 31, 2026 at 2:20 am

    Yep. What that’s saying is that a data type has three pieces:

    1. The various possible values. So, for example, an eight bit signed integer might have -127..128. This of that as a set of values V.

    2. The operations: so an 8-bit signed integer might have +, -, * (multiply), and / (divide). The full definition would define those as functions from V into V, or possible as a function from V into float for division.

    3. The way it’s stored — I sort of gave it away when I said “eight bit signed integer”. The other detail is that I’m assuming a specific representation by the way I showed the range of values.

    You might, if you’re into object oriented programming, notice that this is very much like the definition of a class, which is defined by the storage used by each object, adn the methods of the class. Providing those parts for some arbitrary thing, but not inheritance rules, gives you what’s called an abstract data type.

    Update

    @Appy, there’s some room for differences in the formalities. I was a little subtle because it was late and I was suddenly uncertain if I’d assumed one’s complement or two’s complement — of course it’s two’s complement. So interpretation is included in my description. Abstractly, though, you’d say it is a algebraic structure T=(V,O) where V is a set of values, O a set of functions from V into some arbitrary type — remember ‘==’ for example will be a function eq:V × V → {0,1} so you can’t expect every operation to be into V.

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

Sidebar

Related Questions

I have tried so many things but I don't understand this sooo confusing. I
I've looked at several posts but don't understand how to use jsonReader . I
I borrowed a piece of code from somewhere, but I don't understand it. It
I understand this is an easy question but for some reason this just isn't
I understand what weak tables are. But I'd like to know where weak tables
I can never understand how to print unsigned long datatype in C. Suppose unsigned_foo
what's the purpose/point of the REAL() Datatype in mysql? You have float,double and decimal
Excuse my daftness, but I can not understand how ruby vars can be attained
So I am given this: datatype intnest = INT of int | LIST of
Im pretty new to jQuery (since a week) and don't understand why I can't

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.