calculator

A simple calculator. Uses a combination of Run Basic and JavaScript Features:
 * C || Clear hold area ||
 * CE || Clear entry ||
 * Ceil || Round Up (Ceiling) ||
 * Floor || Round Down ||
 * / || Divide ||
 * * || Multiply ||
 * - || Subtract ||
 * + || Add ||
 * +/- || Change Sign ||
 * sqrt || Square Root ||
 * % || Divide by 100 ||
 * 1/X || Divide into 1 ||
 * ** || To the power of ||
 * sin || Sine of ||
 * log || Log of ||
 * cos || CoSign of ||
 * tan || Tangent of ||
 * = || Compute result ||

code ' -- ' Calculator ' -- TITLEBAR "Calculator"

html "  "

html "  "

CSSClass "a.b", "{   Width:25px; Height:25px; Text-Align:Center; Border-Width:3px; Border-Style:Outset;    background:#BBBBBB; Border-Color:#AAAAAA; Font-Size:12pt; Font-Weight:Bold;    Font-Family:Arial; Text-Decoration:None; Display:Block;    }" CSSClass "a.r", "{   Width:35px; Height: 25px; Text-Align:Center; Border-Width:3px; Border-Style:Outset;    background:#BBBBBB; Border-Color:#AAAAAA; Font-Size:12pt;Font-Weight:Bold;    Font-Family:Arial; Text-Decoration:None; color:red;    Display: Block;    }"

html " " html "" html ""

html "" html " " html "" html "" html " " html " </TABLE>"

[num] html " number('";EventKey$;"') " wait

[func] html " funct('";EventKey$;"') " wait END code