12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Introduction Tothe <strong>spec</strong> User Interface<strong>spec</strong> as a CalculatorIn some re<strong>spec</strong>ts, the <strong>spec</strong> user interface behaves like a BASIC language interpreterthat uses the C language syntax. For example, you can easily print strings and theresults of arithmetic expressions:1.FOURC> p 2+2, sqrt(3), "2ˆ16 =", 1 , < , = , == , != ), the boolean operators (! , && , || ), the bitwise operators(>> , >= , Special string functions also exist. The date() function provides the current dateand time as a string:3.FOURC> p date()Mon Feb 15 02:13:13 19944.FOURC>The date() function can also take an argument that is the number of seconds fromthe UNIX epoch.14 USER MANUAL AND TUTORIALS INTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!