-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path-breakinfinitycommands.sk
More file actions
73 lines (67 loc) · 2.37 KB
/
-breakinfinitycommands.sk
File metadata and controls
73 lines (67 loc) · 2.37 KB
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
# Example usage:
#
# /gte 1e4 1e5 returns false
# /gte 1.52487e5823 1.38924e5823 returns true
#
# /tobignumber 43984205 returns 4.398420500000004e7 (due to binary stuff)
#
# /biglog 6.23489e945 2 returns 3139.526432205491, calculated using log2(10)*log({_n}) returns 3139.52643221
#
# /bigdiv 7.48990e843 1.8345e841 returns 8.121559007904436e1, hypercalc returns 8.121559007904436e1
#
# /bigmultiply 4.38291237e8734267 1.83249230289e2348942547 returns 2.534175728913982e2357676814, hypercalc returns 2.5342e2357676814 (starting to think increasing number accuracy in skript config wasn't needed)
#
# /bigformat 3.328e37 returns 13.28UD
# /bigformat 9.234882e8349 returns 1.234882e8349
#
# /bigadd 5.2348234e8420956258 4.8124209e8420956256 returns 1.2829496422599713e8420956258, hypercalc returns 1.2829e8420956258
#
# /bigremove 2.428935e42364 1.21389e42363 returns 1.307546e42364, hypercalc returns 1.307546000e42364
# /bigremove 2.348e3859234809 1.3487e4934794347349 returns 0e0 (negative numbers bad cuz log(-3) = NaN, etc.)
#
# /bigpow 1.78234e7342 347 returns 1.2408582580979455e2547761, hypercalc returns 1.2408583e2547761
# /bigpow 6.0939e8734 0.2945 returns 2.4782874218354545e2572, hypercalc returns 2.4782874218e2572
#
command gte <string> <string>:
trigger:
message gte(arg-1, arg-2)
command tobignumber <number>:
trigger:
message tobignumber(arg-1)
command biglog <string> <number>:
trigger:
message biglog(arg-1, arg-2)
command bigdiv <string> <string>:
trigger:
message bigdiv(arg-1, arg-2)
command bigmultiply <string> <string>:
trigger:
message bigmultiply(arg-1, arg-2)
command bigformat <string>:
trigger:
message bigformat(arg-1)
command bigadd <string> <string>:
trigger:
message bigadd(arg-1, arg-2)
command bigremove <string> <string>:
trigger:
message bigremove(arg-1, arg-2)
command bigpow <string> <number>:
trigger:
message bigpow(arg-1, arg-2)
command speedtest:
trigger:
message "starting test"
set {_var} to "1e5"
set {_t} to now
loop 10000 times:
set {_var} to biglog({_var}, 10)
message {_var}
message difference between now and {_t}
wait 3 seconds
set {_var} to 10000
set {_t} to now
loop 10000 times:
set {_var} to log({var})+10
message {_var}
message difference between now and {_t}