Forum > Suggestions
wish list: ifthen, tothepowerof, BGRA components
PascalDragon:
--- Quote from: Blue1987 on January 02, 2012, 02:38:05 pm ---1b) a function for "tothepowerof", something simple as "2^0.2" (every time I have to create a specific function for that)
--- End quote ---
The operator "**" already exists and is overloadable (see here: Overloadable Arithmetic Operators). Per default this operator is not overloaded though (thus not usable), but if you include the unit "math" it is overloaded and you can use it for floating point types and for integers.
Regards,
Sven
Navigation
[0] Message Index
[*] Previous page