Conversion BOOL2STRING String Bool value to convert Boolean 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 BOOL2STRING(value) BOOL2STRING(true) returns "True" BOOL2STRING(false) returns "False" upper(BOOL2STRING(find("nan";"banana"))) returns TRUE INT2BOOL Boolean Integer value to convert Int 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. INT2BOOL(value) INT2BOOL(1) returns true INT2BOOL(0) returns false OR(INT2BOOL(1); false) returns true BOOL2INT BOOL2INT Int Bool value to convert Boolean 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. BOOL2INT(value) BOOL2INT(True) returns 1 BOOL2INT(False) returns 0 INT2BOOL NUM2STRING String Number to convert into string Float The NUM2STRING() function returns a string value for a given number. Note that KSpread can auto-covert numbers to strings if needed, so this function should rarely be needed. NUM2STRING(value) NUM2STRING(10) returns "10" NUM2STRING(2.05) returns "2.05" =find("101";NUM2STRING(A1)) (A1 = 2.010102) returns True STRING STRING String Number to convert into string Float The STRING() function returns a string value for a given number. It is the same as the NUM2STRING function. NUM2STRING CHARTOASCII Int A one character string to convert String The CHARTOASCII() function returns the ASCII code for the given character. CHARTOASCII(value) CHARTOASCII("v") returns 118 CHARTOASCII(r) is an error. The character must be in quotes. ASCIITOCHAR String The ASCII values to convert Int The ASCIITOCHAR() function returns the character for each given ASCII code ASCIITOCHAR(value) ASCIITOCHAR(118) returns "v" ASCIITOCHAR(75; 68; 69) returns "KDE" POLR Double Value in X Double Value in Y Double The POLR() function returns the radius corresponding to the position of a point in a cartesian landmark. POLR(X;Y) POLR(12;12) returns 16.9705 POLR(12;0) returns 12 POLA CARX CARY POLA Double Value in X Double Value in Y Double The POLA() function returns the angle (in radians) corresponding to the position of a point in a cartesian landmark. POLA(X;Y) POLA(12;12) returns 0.78539816 POLA(12;0) returns 0 POLA(0;12) returns 1.5707 POLR CARX CARY CARX Double Radius Double Angle (radians) Double The CARX() function returns the X position corresponding to the position of a point in a polar landmark. CARX(Radius;Angle) CARX(12;1.5707) returns 0.00115592 CARX(12;0) returns 12 CARY POLA POLR DECSEX Double Value Double The DECSEX() function converts a double value to a time value. DECSEX(double) DECSEX(1.6668) returns 1:40 DECSEX(7.8) returns 7:47 SEXDEC Double Hours Int Minutes Int Seconds Int The SEXDEC() function returns a decimal value. You can also supply a time value. SEXDEC(time value) or SEXDEC(hours;minutes;seconds) SEXDEC(1;5;7) returns 1.0852778 DECSEX("8:05") returns 8.08333333 CARY Double Radius Double Angle (radians) Double The CARY() function returns the Y position corresponding to the position of a point in a polar landmark. CARY(Radius;Angle) CARY(12;1.5707) returns 12 CARY(12;0) returns 0 CARX POLA POLR ROMAN String Number Int The ROMAN() function returns the number in roman format. Number should be positive and entire. ROMAN(Number) ROMAN(99) returns "XCIX" ROMAN(-55) returns "Err" ARABIC ARABIC Int Numeral String The ARABIC() function converts a roman numeral into a number. ARABIC(Numeral) ARABIC("IV") returns 4 ARABIC("XCIX") returns 99 ROMAN