Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Algorithm to determine if a number A is a power of B.
#21
Quote:
Mitth'raw'nuruodo Wrote:There's a way to check for an intger in 1 line, Z!re knows it, I forgot it

Thats easy

Code:
IF a = INT(a) THEN 'its an integer!
You looked at my code! Not fair! Big Grin j/k Wink

[syntax="QBASIC"]IF Exponent# = INT(Exponent#) THEN[/syntax]



Quote:For example, the bubble sort is called "bubble sort algorithm" and it contains loops
I don't like the idea of sorting without loops.... Big Grin
Reply


Messages In This Thread
Algorithm to determine if a number A is a power of B. - by Neo - 03-03-2005, 06:27 PM
Here's my effort - by Quibbler - 05-31-2005, 07:16 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)