Not mandatory, but has anyone on the PB team looked into a Pow function that returns double precision? I only ask because I'm writing a simple customized calculator program, that uses mostly PB's own functions, and double precision is wasted when Pow is used in a formula.
Thanks
PowD() ?
Ah, thats good to know. Just wondering, why not overload the Str() functions then, instead of Str() StrF() StrD() StrQ()?
One more question while I'm here, why does StrD() return less precision than the double actually has?
One more question while I'm here, why does StrD() return less precision than the double actually has?
Code: Select all
Pi.d = #PI
Debug Pi
Debug StrD(Pi)
It works like this:kenmo wrote:Ah, thats good to know. Just wondering, why not overload the Str() functions then, instead of Str() StrF() StrD() StrQ()?
Code: Select all
A.d = Pow(2, 3) ; Double version of Pow()
B.f = Pow(2, 3) ; Single version of Pow()
C.s = Str(2) ; StrD() or StrF()???
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
It does, and it would be very useful.Trond, I thought overloading meant slightly different functions with the same name that depended on the type of the input, not the type of the output?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system