Welcome our webmaster and SEO forum
Please enjoy the forum, contribute what you can, and wind up the Moderators!
Closed Thread
Results 1 to 2 of 2

Thread: Control Systems Software

  1. #1
    sailee316 is offline Junior Member sailee316 is on a distinguished road
    Join Date
    Jun 2009
    Posts
    1

    Default Control Systems Software

    Hi. I need to know a few things that will help me with programming.

    On off
    Small whole numbers
    Very large whole numbers
    Negative numbers
    Simple fractions
    Very small fractions
    Characters
    Money

    Im not sure how these things are stored in a system? I know the numbers can be stored as integers and bytes etc but what about the fractions, characters and money and on/off??

    In what ways could I use these in a system?

    Also are there any limits or potential problems with using these?

    Thanks

  2. #2
    surreypcsupport's Avatar
    surreypcsupport is offline Senior Member surreypcsupport is on a distinguished road
    Join Date
    Nov 2008
    Location
    surrey
    Posts
    569

    Default

    Quote Originally Posted by sailee316 View Post
    Hi. I need to know a few things that will help me with programming.

    On off
    Small whole numbers
    Very large whole numbers
    Negative numbers
    Simple fractions
    Very small fractions
    Characters
    Money

    Im not sure how these things are stored in a system? I know the numbers can be stored as integers and bytes etc but what about the fractions, characters and money and on/off??

    In what ways could I use these in a system?

    Also are there any limits or potential problems with using these?

    Thanks
    Data types depend on the language you are using. For example in Visual Basic:

    On off = boolean
    Small whole numbers - short integer (max 32,768)
    Very large whole numbers - long integer (max 18,446,744,073,709,551,615)
    Negative numbers - just change the sign
    Simple fractions - you would use decimals to express fractions
    Very small fractions as above
    Characters - strings
    Money - single

    For more info see: Data Type Summary (Visual Basic)

    In PHP you do not define datatypes in the same way.

    C,C++ and Java datatypes are similar to VB.
    decimal variables can be singles - 8 digits after decimal, or doubles - 16 digits after decimals

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124