i know you can use chr (253) for squared...
is there one for cubed??
i know you can use chr (253) for squared...
is there one for cubed??
i do not believe that there is any symbol in standard ascii..
if you are asking however how to do powers:
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++)PHP Code:
#include <cmath>
cube = pow(num,3);
no no i understand how to do that.... i was just wondering if there was a symbol...
n^2 = squared
n^3 = cubed
n^4 = quadruped
n^x = etc
The ASCII value is actually 179.
"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
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.04-24-2002 11:10 AM - Last post before CyberStrike's
Today 08:38 PM - CyberStrike's post
[edit]
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_ASCIIOriginally Posted by CyberStrike
[/edit]
Last edited by arpsmack; 10-12-2008 at 10:12 PM.