Wiki source code of Интерфейс calc
Version 2.1 by Bimit Administrator on 08.02.2022, 14:10
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | |||
2 | |||
3 | (% style="line-height:1.38; margin-top:24px; margin-bottom:8px" %) | ||
4 | == (% style="font-size: 16pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-weight: 700; font-style: normal; text-decoration: none" %)**calc**(%%) == | ||
5 | |||
6 | (% style="line-height:1.38" %) | ||
7 | (% style="font-size: 14pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-weight: 400; font-style: normal; text-decoration: none" %)это интерфейс строительного калькулятора, предоставляющий базовые функции расчета | ||
8 | |||
9 | (% style="line-height:1.38" %) | ||
10 | (% style="font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-weight: 400; font-style: normal; text-decoration: none" %)В нем доступны следующий функции: | ||
11 | |||
12 | |||
13 | * ((( | ||
14 | (% role="presentation" style="line-height:1.38; font-size:13.999999999999998pt; font-family:Arial; color:#434343; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre; padding-inline-start:48px" %) | ||
15 | === (% style="font-size: 14pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(67, 67, 67); font-weight: 700; font-style: normal; text-decoration: none" %)**area - **(% style="font-size: 14pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(67, 67, 67); font-weight: 400; font-style: normal; text-decoration: none" %)подсчет площади прямоугольной фигуры, заданной длинами сторон(%%) === | ||
16 | ))) | ||
17 | |||
18 | (% style="margin-left:48px" %) | ||
19 | ((( | ||
20 | (% cellspacing="0" style="border-collapse:collapse; border:none; table-layout:fixed; width:602px" %) | ||
21 | |(% style="background-color:#cccccc; border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top" width="NaN" %)((( | ||
22 | (% style="line-height:1.38" %) | ||
23 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)Пример: | ||
24 | |||
25 | (% style="line-height:1.38; margin-left:48px" %) | ||
26 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)def area = calc.(% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 700; font-style: normal; text-decoration: none" %)**area**(% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 700; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)(6,6) | ||
27 | |||
28 | (% style="line-height:1.2; margin-left:47px" %) | ||
29 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)console.info(area(% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 700; font-style: normal; text-decoration: none" %)**) -> **(% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 700; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)“INFO: 36.0” | ||
30 | ))) | ||
31 | ))) | ||
32 | |||
33 | |||
34 | \\ | ||
35 | |||
36 | * ((( | ||
37 | (% role="presentation" style="line-height:1.38; font-size:13.999999999999998pt; font-family:Arial; color:#434343; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre; padding-inline-start:48px" %) | ||
38 | === (% style="font-size: 14pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(67, 67, 67); font-weight: 700; font-style: normal; text-decoration: none" %)**volume - **(% style="font-size: 14pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(67, 67, 67); font-weight: 400; font-style: normal; text-decoration: none" %)подсчет объема параллелепипеда, заданной длинами сторон (ДЛИНАxШИРИНАxВЫСОТА)(%%) === | ||
39 | ))) | ||
40 | |||
41 | (% style="margin-left:48px" %) | ||
42 | ((( | ||
43 | (% cellspacing="0" style="border-collapse:collapse; border:none; table-layout:fixed; width:602px" %) | ||
44 | |(% style="background-color:#cccccc; border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top" width="NaN" %)((( | ||
45 | (% style="line-height:1.38" %) | ||
46 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)Пример: | ||
47 | |||
48 | (% style="line-height:1.38; margin-left:48px" %) | ||
49 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)def vol= calc.(% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 700; font-style: normal; text-decoration: none" %)**volume**(% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 700; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)(6,0.5,3) | ||
50 | |||
51 | (% style="line-height:1.2; margin-left:47px" %) | ||
52 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)console.info(vol(% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 700; font-style: normal; text-decoration: none" %)**) -> **(% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 700; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)“INFO: 9.0” | ||
53 | ))) | ||
54 | ))) | ||
55 | |||
56 | |||
57 | \\ | ||
58 | |||
59 | * ((( | ||
60 | (% role="presentation" style="line-height:1.38; font-size:13.999999999999998pt; font-family:Arial; color:#434343; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre; padding-inline-start:48px" %) | ||
61 | === (% style="font-size: 14pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(67, 67, 67); font-weight: 700; font-style: normal; text-decoration: none" %)**areaBox - **(% style="font-size: 14pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(67, 67, 67); font-weight: 400; font-style: normal; text-decoration: none" %)подсчет площади поверхности стен прямоугольной комнаты, заданной длинами сторон и высотой(%%) === | ||
62 | ))) | ||
63 | |||
64 | (% style="margin-left:48px" %) | ||
65 | ((( | ||
66 | (% cellspacing="0" style="border-collapse:collapse; border:none; table-layout:fixed; width:602px" %) | ||
67 | |(% style="background-color:#cccccc; border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top" width="NaN" %)((( | ||
68 | (% style="line-height:1.38" %) | ||
69 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)Пример: | ||
70 | |||
71 | (% style="line-height:1.38; margin-left:48px" %) | ||
72 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)def area = calc.(% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 700; font-style: normal; text-decoration: none" %)**areaBox**(% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 700; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)(6,6,3) | ||
73 | |||
74 | (% style="line-height:1.2; margin-left:47px" %) | ||
75 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)console.info(area(% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 700; font-style: normal; text-decoration: none" %)**) -> **(% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 700; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)“INFO: 72.0” | ||
76 | ))) | ||
77 | ))) | ||
78 | |||
79 | |||
80 | \\ | ||
81 | |||
82 | * ((( | ||
83 | (% role="presentation" style="line-height:1.38; font-size:13.999999999999998pt; font-family:Arial; color:#434343; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre; padding-inline-start:48px" %) | ||
84 | === (% style="font-size: 14pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(67, 67, 67); font-weight: 700; font-style: normal; text-decoration: none" %)**volumeBox - **(% style="font-size: 14pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(67, 67, 67); font-weight: 400; font-style: normal; text-decoration: none" %)подсчет объема стен коробки, заданной длинами сторон (по внешней стороне), высотой и толщиной стены(%%) === | ||
85 | ))) | ||
86 | |||
87 | (% style="margin-left:48px" %) | ||
88 | ((( | ||
89 | (% cellspacing="0" style="border-collapse:collapse; border:none; table-layout:fixed; width:602px" %) | ||
90 | |(% style="background-color:#cccccc; border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top" width="NaN" %)((( | ||
91 | (% style="line-height:1.38" %) | ||
92 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)Пример: | ||
93 | |||
94 | (% style="line-height:1.38; margin-left:48px" %) | ||
95 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)def vol= calc.(% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 700; font-style: normal; text-decoration: none" %)**volumeBox**(% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 700; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)(6,6,3,0.5) | ||
96 | |||
97 | (% style="line-height:1.38; margin-left:48px" %) | ||
98 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)console.info(vol(% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 700; font-style: normal; text-decoration: none" %)**) -> **(% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 700; font-style: normal; text-decoration: none; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(204, 204, 204); font-weight: 400; font-style: normal; text-decoration: none" %)“INFO: 33.0” | ||
99 | ))) | ||
100 | ))) |