# Questions about constants.

Page 1 of 1

## 5 Replies - 923 Views - Last Post: 08 November 2009 - 05:45 PMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=137532&amp;s=69a2fb0ebf85145e503b45c551e00c5e&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 H4CKC0D3R

• New D.I.C Head

Reputation: 0
• Posts: 9
• Joined: 16-September 09

# Questions about constants.

Posted 08 November 2009 - 10:57 AM

Hi, I'm new to C++ and I'm reading more each day. One part I'm having trouble understanding though is constants. So I'll ask you guys about them.

First off, what are octal(base-8) and hexadecimal(base-16) numerals?

Last, I don't understand how to use suffixes in floating point numbers. Such as: (e, f, l)

Anyways that is all my questions for now, please answer them as soon as possible.
Is This A Good Question/Topic? 0

## Replies To: Questions about constants.

### #2 Oler1s

• D.I.C Lover

Reputation: 1397
• Posts: 3,884
• Joined: 04-June 09

## Re: Questions about constants.

Posted 08 November 2009 - 12:02 PM

Quote

First off, what are octal(base-8) and hexadecimal(base-16) numerals?
What have you done to try and answer your own question?

Quote

Last, I don't understand how to use suffixes in floating point numbers. Such as: (e, f, l)
What have you done to try and learn about suffixes?

### #3 H4CKC0D3R

• New D.I.C Head

Reputation: 0
• Posts: 9
• Joined: 16-September 09

## Re: Questions about constants.

Posted 08 November 2009 - 04:55 PM

Oler1s, on 8 Nov, 2009 - 11:02 AM, said:

Quote

First off, what are octal(base-8) and hexadecimal(base-16) numerals?
What have you done to try and answer your own question?

Quote

Last, I don't understand how to use suffixes in floating point numbers. Such as: (e, f, l)
What have you done to try and learn about suffixes?

I've read the tutorials from: http://www.cplusplus.com/doc/tutorial/ on them and I don't understand them really. All I need is someone to explain them to me in their own words.

### #4 redhotfire0

Reputation: 10
• Posts: 210
• Joined: 13-July 09

## Re: Questions about constants.

Posted 08 November 2009 - 05:07 PM

H4CKC0D3R, on 8 Nov, 2009 - 03:55 PM, said:

I've read the tutorials from: http://www.cplusplus.com/doc/tutorial/ on them and I don't understand them really. All I need is someone to explain them to me in their own words.

```http://www.wikipedia.org

```

I am sure it will give a more thorough explanation to your questions than your book seeing as you skimmed over it.

### #5 carltech

• What did you call me?

Reputation: 28
• Posts: 997
• Joined: 19-October 07

## Re: Questions about constants.

Posted 08 November 2009 - 05:38 PM

Wiki
base 8 just means you count like 0 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17
base 10 is decimal numbers like 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
base 16 used A B C D E F since there isn't actually 16 numerals so i c ounts like 0 1 2 3 4 5 6 7 8 9 A B C D E F G 10.

http://msdn.microsof...wxf(VS.80).aspx

### #6 Oler1s

• D.I.C Lover

Reputation: 1397
• Posts: 3,884
• Joined: 04-June 09

## Re: Questions about constants.

Posted 08 November 2009 - 05:45 PM

You can't understand their tutorial, so you want us to spend time repeating everything? Why? I mean, how do we know you'll understand us?

Did you specific questions about what you didn't understand. Did you encounter a sentence you didn't understand. Did you encounter a line of code you didn't understand? Or was it all gibberish?