CONSOLE.sml

  Download

More scripts: SML Fundamentals

Syntax Highlighing:

comments, key words, predefined symbols, class members & methods, functions & classes
            
# CONSOLE.SML
# sample script for tutorial Writing Scripts with SML
class STRING str1, str2;
str1 = "you";		str2 = "guys";
numeric a, b, c;
a = 43;	b = 24.83654 
clear(); # clear the console window
print("A simple print statement.");
print(str1);
print(a);
print(str1, a);
printf("Hello, %s %s.\n", str1, str2);
printf("a is %d, b is %.5f\n", a, b);
printf("b rounded to two decimal places: %.2f\n", b);
printf("b in scientific notation: %.6E\n", b);