Post Reply 
Bug or Not? Taking STRING of a string whilst making leading zeros
01-30-2018, 02:28 PM
Post: #5
RE: Bug or Not? Taking STRING of a string whilst making leading zeros
Warning #1: The output of STRING(X) depends on the current Number Format in Home Settings. For example, STRING(456) in Fixed 2 mode returns "456.00" which might not be what you want. To insure that whole numbers always get turned into strings without decimal places, use the optional second argument to specify the desired format regardless of the current setting. STRING(456,1) --> "456" (the 1 here means "use Standard number format").

Warning #2: In CAS programs, be sure to use the newer, smarter function STRING(), not its older, dumber sibling string(). Thankfully, Home always uses STRING().

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Bug or Not? Taking STRING of a string whilst making leading zeros - Joe Horn - 01-30-2018 02:28 PM



User(s) browsing this thread: 1 Guest(s)