cubed symbol?

This is a discussion on cubed symbol? within the C++ Programming forums, part of the General Programming Boards category; i know you can use chr (253) for squared... is there one for cubed??...

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    16

    cubed symbol?

    i know you can use chr (253) for squared...
    is there one for cubed??

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    403
    i do not believe that there is any symbol in standard ascii..
    if you are asking however how to do powers:

    PHP Code:
    #include <cmath>
    cube pow(num,3); 
    and another way to output things to a power is to use the ^ symbol, many people recognize this as the symbol for "to the power of" (but keep in mind it is XOR in C/C++)

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    16
    no no i understand how to do that.... i was just wondering if there was a symbol...

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    206
    n^2 = squared
    n^3 = cubed
    n^4 = quadruped
    n^x = etc

  5. #5
    Registered User
    Join Date
    Oct 2008
    Posts
    1
    The ASCII value is actually 179.

  6. #6
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by CyberStrike View Post
    The ASCII value is actually 179.
    Not on my system.
    If I type: Alt + 179 I get: │
    If I type: Alt + 253 I get:
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  7. #7
    Registered User
    Join Date
    Jan 2008
    Posts
    287
    04-24-2002 11:10 AM - Last post before CyberStrike's
    Today 08:38 PM - CyberStrike's post
    Also, by "not on my system", you of course meant "not in the character set I'm looking at". The extended ASCII code mappings vary depending on character set, but I'm sure you probably already knew that.

    [edit]
    Quote Originally Posted by CyberStrike
    The ASCII value is actually 179.
    Ok for sake of clarity I feel that I should correct this as well. The ASCII value CANNOT be 179. ASCII is a 7-bit encoding scheme. Additional mappings were added later to take advantage of the eighth..... oh never mind, just go to wikipedia and read it there: http://en.wikipedia.org/wiki/Extended_ASCII
    [/edit]
    Last edited by arpsmack; 10-12-2008 at 10:12 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 02:07 AM
  2. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 01:28 PM
  3. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 04:44 PM
  4. Linking error
    By DockyD in forum C++ Programming
    Replies: 10
    Last Post: 01-20-2003, 04:27 AM
  5. <list>
    By Unregistered in forum C++ Programming
    Replies: 9
    Last Post: 02-24-2002, 03:07 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21