-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.html
182 lines (182 loc) · 5.26 KB
/
help.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<div style="display: inline-block; width: auto; margin: 12pt; height: 95%; background-color: white; overflow-y: scroll">
<div title="Close (Esc)" style="margin: 4pt 12pt; cursor: pointer; float: right" id="help-back">❌</div>
<div style="overflow-y: auto; height: 100%; padding: 0 12pt;">
<h1>Arbitrary Precision Calculator – Help</h1>
<p>
Write your formulas as you're used to in JavaScript, one per line, e.g. <code>4*(b1111^b1010)+xff*o77</code>,
i.e. bitwise XOR the binary values <code>1111</code> and <code>1010</code>, then multiply the result with 4
(decimal), finally add the product of hexadecimal value <code>ff</code> and the octal value <code>77</code>.
You can also assign values to variables like in <code>a = 2**128</code>.
Choose number system of result output using the radio buttons.
</p>
<div style="display: flex; flex-direction: row; flex-wrap: wrap">
<table>
<caption>Operators</caption>
<thead>
<tr>
<th>Operator</th>
<th>Meaning</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>-</code></td>
<td>unary minus</td>
</tr>
<tr>
<td><code>~</code></td>
<td>bitwise NOT</td>
</tr>
<tr>
<td><code>**</code></td>
<td>power</td>
</tr>
<tr>
<td><code>*</code></td>
<td>multiplication</td>
</tr>
<tr>
<td><code>/</code></td>
<td>division</td>
</tr>
<tr>
<td><code>%</code></td>
<td>remainder</td>
</tr>
<tr>
<td><code>+</code></td>
<td>sum</td>
</tr>
<tr>
<td><code>-</code></td>
<td>difference</td>
</tr>
<tr>
<td><code><<</code></td>
<td>bitwise shift left</td>
</tr>
<tr>
<td><code>>></code></td>
<td>bitwise shift right</td>
</tr>
<tr>
<td><code><</code></td>
<td>less than</td>
</tr>
<tr>
<td><code>></code></td>
<td>greater than</td>
</tr>
<tr>
<td><code>≤</code></td>
<td>less or equal</td>
</tr>
<tr>
<td><code>≥</code></td>
<td>greater or equal</td>
</tr>
<tr>
<td><code>==</code></td>
<td>equal</td>
</tr>
<tr>
<td><code>!=</code></td>
<td>not equal</td>
</tr>
<tr>
<td><code>&</code></td>
<td>bitwise AND</td>
</tr>
<tr>
<td><code>|</code></td>
<td>bitwise OR</td>
</tr>
<tr>
<td><code>^</code></td>
<td>bitwise XOR</td>
</tr>
<tr>
<td><code>=</code></td>
<td>assignment</td>
</tr>
<tr>
<td><code>&=</code></td>
<td>compound assignment by bitwise AND</td>
</tr>
<tr>
<td><code>|=</code></td>
<td>compound assignment by bitwise OR</td>
</tr>
<tr>
<td><code>^=</code></td>
<td>compound assignment by bitwise XOR</td>
</tr>
<tr>
<td><code>/=</code></td>
<td>compound assignment by division</td>
</tr>
<tr>
<td><code>*=</code></td>
<td>compound assignment by multiplication</td>
</tr>
<tr>
<td><code>%=</code></td>
<td>compound assignment by remainder</td>
</tr>
<tr>
<td><code>+=</code></td>
<td>compound assignment by sum</td>
</tr>
<tr>
<td><code>-=</code></td>
<td>compound assignment by difference</td>
</tr>
<tr>
<td><code><<=</code></td>
<td>compound assignment by bitwise shift left</td>
</tr>
<tr>
<td><code>>>=</code></td>
<td>compound assignment by bitwise shift right</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="2">highest precedence first; use parentheses to modify precedence</td>
</tr>
</tfoot>
</table>
<table>
<caption>Functions</caption>
<thead>
<tr>
<th>Function</th>
<th>Meaning</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>gcd(a, b)</code></td>
<td>greatest common divisor</td>
</tr>
<tr>
<td><code>lcm(a, b)</code></td>
<td>least common multiple</td>
</tr>
<tr>
<td><code>sqrt(a)</code></td>
<td>square root</td>
</tr>
<tr>
<td><code>max(a, b)</code></td>
<td>maximum</td>
</tr>
<tr>
<td><code>min(a, b)</code></td>
<td>minimum</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>