{"id":8182,"date":"2024-04-01T11:37:03","date_gmt":"2024-04-01T11:37:03","guid":{"rendered":"https:\/\/www.dyalog.com\/blog\/?p=8182"},"modified":"2024-08-29T10:13:41","modified_gmt":"2024-08-29T10:13:41","slug":"numeric-case-conversion","status":"publish","type":"post","link":"https:\/\/www.dyalog.com\/blog\/2024\/04\/numeric-case-conversion\/","title":{"rendered":"Numeric Case Conversion"},"content":{"rendered":"<p>Dyalog version 18.0, released in June 2020, introduced the <em>Case Convert<\/em> system function <code class=\"language-apl\">\u2395C<\/code>. It was a replacement for the long-lived (since version 15.0, from June 2016) I-beam <code class=\"language-apl\">819\u2336<\/code>, which was then deprecated. (By the way, did you know that the digits 819 were chosen to be reminiscent of the letters <code>BIg<\/code> as in <em>big<\/em> \u2014 uppercase \u2014 <em>letters<\/em>?) It is expected that <code class=\"language-apl\">819\u2336<\/code> will be disabled in the next major version of Dyalog APL.<\/p>\n<p><code class=\"language-apl\">\u2395C<\/code> already has several advantages over <code class=\"language-apl\">819\u2336<\/code>, for example the ability to case-fold rather than lowercase. (Did you know that Cherokee syllabary case-folds to uppercase?) With today&#8217;s release of Dyalog version 19.4.1, we&#8217;re happy to announce a further extension of <code>\u2395C<\/code>, covering <em>scaled format<\/em> (also known as <em>scientific<\/em> or <em>E notation<\/em>) and <em>complex numbers<\/em>.<\/p>\n<p>By default, APL uses the letter <code class=\"language-apl\">E<\/code> to separate mantissa and exponent in very large and very small numbers. Similarly, the letter <code class=\"language-apl\">J<\/code> is used to separate real and imaginary parts of complex numbers:<\/p>\n<pre><code class=\"language-apl\">      2 20 * 64 \u00af24\r\n1.844674407E19 5.960464478E\u00af32\r\n      \u00af1 \u00af5*0.5\r\n0J1 0J2.236067977\r\n<\/code><\/pre>\n<p>For input, however, <code class=\"language-apl\">e<\/code> and <code class=\"language-apl\">j<\/code> are accepted in addition to <code class=\"language-apl\">E<\/code> and <code class=\"language-apl\">J<\/code>:<\/p>\n<pre><code class=\"language-apl\">      1E4 1J4 \u2261 1e4 1j4\r\n1\r\n<\/code><\/pre>\n<p>You can now conveniently mitigate this asymmetry using <code class=\"language-apl\">\u2395C<\/code>:<\/p>\n<pre><code class=\"language-apl\">      \u2395C 2 20 * 64 \u00af24\r\n1.844674407e19 5.960464478e\u00af32\r\n      \u2395C \u00af1 \u00af5 * 0.5\r\n0j1 0j2.236067977\r\n<\/code><\/pre>\n<p>We hope that this added functionality will be exploited to its fullest by all our users. Please contact us if you experience any stability issues with the new feature.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dyalog version 18.0, released in June 2020, introduced the Case Convert system function \u2395C. It was a replacement for the long-lived (since version 15.0, from June 2016) I-beam 819\u2336, which was then deprecated. (By the way, did you know that &hellip; <a href=\"https:\/\/www.dyalog.com\/blog\/2024\/04\/numeric-case-conversion\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":25,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-8182","post","type-post","status-publish","format-standard","hentry","category-recreational"],"_links":{"self":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/8182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/comments?post=8182"}],"version-history":[{"count":36,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/8182\/revisions"}],"predecessor-version":[{"id":8361,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/8182\/revisions\/8361"}],"wp:attachment":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/media?parent=8182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/categories?post=8182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/tags?post=8182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}