Real constants and functions: Difference between revisions
Content added Content deleted
(→Pascal: fix minor inaccuracy) |
|||
Line 1,178: | Line 1,178: | ||
=={{header|FutureBasic}}== |
=={{header|FutureBasic}}== |
||
<lang futurebasic> |
<lang futurebasic>window 1 |
||
include "ConsoleWindow" |
|||
text ,,,,, 60// set tab width |
|||
// Set width of tab |
|||
def tab 8 |
|||
print "exp:", exp(1) |
print @"exp:", exp(1) |
||
print "pi:", pi |
print @"pi:", pi |
||
print "sqr:", sqr(2) |
print @"sqr:", sqr(2) |
||
print "log:", log(2) |
print @"log:", log(2) |
||
print "log2:", log2(2) |
print @"log2:", log2(2) |
||
print "log10", log10(2) |
print @"log10", log10(2) |
||
print "abs:", abs(-2) |
print @"abs:", abs(-2) |
||
print "floor:", int(1.534) |
print @"floor:", int(1.534) |
||
print "ceil:", val( using"###"; 1.534 ) |
print @"ceil:", val( using"###"; 1.534 ) |
||
print "power:", 1.23 ^ 4 |
print @"power:", 1.23 ^ 4 |
||
</lang> |
|||
HandleEvents</lang> |
|||
Output: |
Output: |
||
<pre> |
<pre> |