Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
I don't know HDL, but in many programming languages (e.g., FORTRAN, Python) a**b means to raise a to the power b, usually with floating point arithmetic.
Geeze, i havent seen that notation for years now. That was one of the first symbols for 'raise to the power of' that was ever used. Today we use the carat symbol like:
2^32
Note there is no standard, so you have to know what's going on in the environment you're working in. For example, in C, the pow() function in the standard library is used, as there is no operator built into the language for exponentiation (and ^ in C always has meant integer XOR). In FORTRAN, the ** meant exponentiation; it also does so in some modern languages like python. I'm with Mr Al in that I prefer to use the carat for exponentiation -- but I get myself into syntax trouble in some programming languages when I forget...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.