Jump to content

Real constants and functions: Difference between revisions

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

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.