1
<!DOCTYPE KSpreadFunctions>
5
<GroupName>Conversion</GroupName>
8
<Name>BOOL2STRING</Name>
11
<Comment>Bool value to convert</Comment>
12
<Type range="false">Boolean</Type>
15
<Text>The BOOL2STRING() function returns a string value for a given boolean value. This method is intended for using a boolean in methods which require a string</Text>
16
<Syntax>BOOL2STRING(value)</Syntax>
17
<Example>BOOL2STRING(true) returns "True"</Example>
18
<Example>BOOL2STRING(false) returns "False"</Example>
19
<Example>upper(BOOL2STRING(find("nan";"banana"))) returns TRUE</Example>
20
<Related>STRING2BOOL</Related>
28
<Comment>Integer value to convert</Comment>
29
<Type range="false">Int</Type>
32
<Text>The INT2BOOL() function returns a boolean value for a given integer number. This method is intended for using an integer in methods which require a boolean. It only accepts 0 or 1. If any other value is given, false is returned.</Text>
33
<Syntax>INT2BOOL(value)</Syntax>
34
<Example>INT2BOOL(1) returns true</Example>
35
<Example>INT2BOOL(0) returns false</Example>
36
<Example>OR(INT2BOOL(1); false) returns true</Example>
37
<Related>BOOL2INT</Related>
45
<Comment>Bool value to convert</Comment>
46
<Type range="false">Boolean</Type>
49
<Text>The BOOL2INT() function returns an integer value for a given boolean value. This method is intended for using a boolean value in methods which require an integer.</Text>
50
<Syntax>BOOL2INT(value)</Syntax>
51
<Example>BOOL2INT(True) returns 1</Example>
52
<Example>BOOL2INT(False) returns 0</Example>
53
<Related>INT2BOOL</Related>
58
<Name>NUM2STRING</Name>
61
<Comment>number to convert into string</Comment>
62
<Type range="false">Float</Type>
65
<Text>The NUM2STRING() function returns a string value for a given number. This method is intended for using a number in methods which require a string</Text>
66
<Syntax>NUM2STRING(value)</Syntax>
67
<Example>NUM2STRING(10) returns "10"</Example>
68
<Example>NUM2STRING(2.05) returns "2.05"</Example>
69
<Example>=find("101";NUM2STRING(A1)) (A1 = 2.010102) returns True</Example>
74
<Name>CHARTOASCII</Name>
77
<Comment>A one character string to convert</Comment>
81
<Text>The CHARTOASCII() function returns the ASCII code for the given character.</Text>
82
<Syntax>CHARTOASCII(value)</Syntax>
83
<Example>CHARTOASCII("v") returns 118</Example>
84
<Example>CHARTOASCII(r) is an error. The character must be in quotes.</Example>
89
<Name>ASCIITOCHAR</Name>
92
<Comment>The ASCII values to convert</Comment>
96
<Text>The ASCIITOCHAR() function returns the character for each given ASCII code</Text>
97
<Syntax>ASCIITOCHAR(value)</Syntax>
98
<Example>ASCIITOCHAR(118) returns "v"</Example>
99
<Example>ASCIITOCHAR(75; 68; 69) returns "KDE"</Example>
107
<Comment>Value in X</Comment>
111
<Comment>Value in Y</Comment>
115
<Text>The POLR() function returns the radius corresponding to the position of a point in a cartesian landmark.</Text>
116
<Syntax>POLR(X;Y)</Syntax>
117
<Example>POLR(12;12) returns 16.9705</Example>
118
<Example>POLR(12;0) returns 12</Example>
119
<Related>POLA</Related>
120
<Related>CARX</Related>
121
<Related>CARY</Related>
129
<Comment>Value in X</Comment>
133
<Comment>Value in Y</Comment>
137
<Text>The POLA() function returns the angle (in radians) corresponding to the position of a point in a cartesian landmark.</Text>
138
<Syntax>POLA(X;Y)</Syntax>
139
<Example>POLA(12;12) returns 0.78539816</Example>
140
<Example>POLA(12;0) returns 0</Example>
141
<Example>POLA(0;12) returns 1.5707</Example>
142
<Related>POLR</Related>
143
<Related>CARX</Related>
144
<Related>CARY</Related>
152
<Comment>Radius</Comment>
156
<Comment>Angle (radians)</Comment>
160
<Text>The CARX() function returns the X position corresponding to the position of a point in a polar landmark.</Text>
161
<Syntax>CARX(Radius;Angle)</Syntax>
162
<Example>CARX(12;1.5707) returns 0.00115592</Example>
163
<Example>CARX(12;0) returns 12</Example>
164
<Related>CARY</Related>
165
<Related>POLA</Related>
166
<Related>POLR</Related>
174
<Comment>Value</Comment>
178
<Text>The DECSEX() function converts a double value to a time value.</Text>
179
<Syntax>DECSEX(double)</Syntax>
180
<Example>DECSEX(1.6668) returns 1:40 </Example>
181
<Example>DECSEX(7.8) returns 7:47</Example>
189
<Comment>Hours</Comment>
193
<Comment>Minutes</Comment>
197
<Comment>Seconds</Comment>
201
<Text>The SEXDEC() function returns a decimal value. You can also supply a time value.</Text>
202
<Syntax>SEXDEC(time value) or SEXDEC(hours;minutes;seconds)</Syntax>
203
<Example>SEXDEC(1;5;7) returns 1.0852778 </Example>
204
<Example>DECSEX("8:05") returns 8.08333333</Example>
212
<Comment>Radius</Comment>
216
<Comment>Angle (radians)</Comment>
220
<Text>The CARY() function returns the Y position corresponding to the position of a point in a polar landmark.</Text>
221
<Syntax>CARY(Radius;Angle)</Syntax>
222
<Example>CARY(12;1.5707) returns 12</Example>
223
<Example>CARY(12;0) returns 0</Example>
224
<Related>CARX</Related>
225
<Related>POLA</Related>
226
<Related>POLR</Related>
234
<Comment>Number</Comment>
238
<Text>The ROMAN() function returns the number in roman format. Number should be positive and entire.</Text>
239
<Syntax>ROMAN(Number)</Syntax>
240
<Example>ROMAN(99) returns "XCIX"</Example>
241
<Example>ROMAN(-55) returns "Err"</Example>
242
<Related>ARABIC</Related>
250
<Comment>Numeral</Comment>
254
<Text>The ARABIC() function converts a roman numeral into a number.</Text>
255
<Syntax>ARABIC(Numeral)</Syntax>
256
<Example>ARABIC("IV") returns 4</Example>
257
<Example>ARABIC("XCIX") returns 99</Example>
258
<Related>ROMAN</Related>