{"id":5480,"date":"2023-11-20T15:19:46","date_gmt":"2023-11-20T14:19:46","guid":{"rendered":"https:\/\/msxitalia.org\/?p=5480"},"modified":"2023-11-20T15:19:46","modified_gmt":"2023-11-20T14:19:46","slug":"msx-basic-lezione-6","status":"publish","type":"post","link":"https:\/\/msxitalia.org\/en\/msx-basic-lezione-6\/","title":{"rendered":"MSX BASIC \u2013 lesson 6"},"content":{"rendered":"<div class=\"\" dir=\"auto\">\n<div id=\":r49d:\" class=\"x1iorvi4 x1pi30zi x1swvt13 xjkvuk6\" data-ad-comet-preview=\"message\" data-ad-preview=\"message\">\n<div class=\"x78zum5 xdt5ytf xz62fqu x16ldp7u\">\n<div class=\"xu06os2 x1ok221b\">\n<div class=\"xdj266r x11i5rnm xat24cr x1mh8g0r x1vvkbs x126k92a\">\n<h1 dir=\"auto\"><img decoding=\"async\" data-src=\"https:\/\/msxitalia.org\/wp-content\/uploads\/2023\/11\/Corso-Basic-MSX1-OC-300x225.jpg\" class=\"size-medium wp-image-5338 aligncenter lazyload\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" alt=\"\" width=\"300\" height=\"225\" \/><noscript><img decoding=\"async\" class=\"size-medium wp-image-5338 aligncenter\" src=\"https:\/\/msxitalia.org\/wp-content\/uploads\/2023\/11\/Corso-Basic-MSX1-OC-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\"><\/noscript><\/h1>\n<h1 dir=\"auto\" style=\"text-align: center;\">\u201cMSX BASIC\u201d COLUMN by Orazio Cacciola (part 6)<\/h1>\n<h2 style=\"text-align: center;\">Mathematical functions and more<\/h2>\n<\/div>\n<p>In this episode I will give an overview of those functions that we will use very little but which are convenient to know and what they are for.<\/p>\n<p>ABS: Returns the absolute value of the calculation of 2 or more numeric data. This means that it will always give a positive value in any case.<br \/>\nSyntax: ABS(AB)<\/p>\n<p>ATN: Returns the value of the arctangent, whose argument(N) is expressed in radians.<br \/>\nSyntax: ATN(N)<\/p>\n<p>COS: Returns the cosine value always expressed in radians.<br \/>\nSyntax: COS(N)<\/p>\n<p>EXP: Calculates the exponential value.<br \/>\nSyntax: EXP(N)<\/p>\n<p>LOG: Return the logarithm of the number or variable of the N argument.<br \/>\nSyntax: LOG(N)<\/p>\n<p>SNG: Returns the sign of a number or variable. If it is positive, it will give 1, if it is negative it will be -1, it will be 0 if this is equal to zero.<br \/>\nSyntax: SNG(N)<\/p>\n<p>SIN: Like the COS function, returns the value of the sine.<br \/>\nSyntax: SIN(N)<\/p>\n<p>SQR: Returns the square root of a number or variable.<br \/>\nSyntax: SQR(N)<\/p>\n<p>TAN: Returns the tangent of a number or variable always in radians.<br \/>\nSyntax: TAN(N)<\/p>\n<p>CINT: Rounds value N to an integer. The value must vary between -32768 and 32767<br \/>\nSyntax: CINT(N)<\/p>\n<p>FIX; Indicates the integer part of N<br \/>\nSyntax: FIX(N)<\/p>\n<p>VAL; Converts a string to a numeric value, this is if the first character of the string is a number or a recognition sign for other numeric systems (See 3rd part:<br \/>\nThe Systems; Binary, Octal and Hexadecimal). Remember that, if the converted number has been placed in a variable and this has been named as an integer, it must not exceed<br \/>\nvalue of the integers, otherwise our MSX will report it with an error message: Overflow<br \/>\nSyntax: VAL(N)<\/p>\n<p>Thanks and see you next time.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>RUBRICA &#8220;MSX BASIC&#8221; a cura di Orazio Cacciola (parte 6) Funzioni Matematiche ed altro In questa puntata far\u00f2 una carrellata di quelle funzioni che useremo pochissimo ma che \u00e8 conveniente conoscerle e sapere a cosa servono. ABS: Restituisce il valore assoluto del calcolo di 2 o pi\u00f9 dati numerici. Questo vuol significare che dar\u00e0 sempre [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[14],"tags":[],"dipi_cpt_category":[],"class_list":["post-5480","post","type-post","status-publish","format-standard","hentry","category-msx-basic"],"_links":{"self":[{"href":"https:\/\/msxitalia.org\/en\/wp-json\/wp\/v2\/posts\/5480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/msxitalia.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/msxitalia.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/msxitalia.org\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/msxitalia.org\/en\/wp-json\/wp\/v2\/comments?post=5480"}],"version-history":[{"count":2,"href":"https:\/\/msxitalia.org\/en\/wp-json\/wp\/v2\/posts\/5480\/revisions"}],"predecessor-version":[{"id":5482,"href":"https:\/\/msxitalia.org\/en\/wp-json\/wp\/v2\/posts\/5480\/revisions\/5482"}],"wp:attachment":[{"href":"https:\/\/msxitalia.org\/en\/wp-json\/wp\/v2\/media?parent=5480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/msxitalia.org\/en\/wp-json\/wp\/v2\/categories?post=5480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/msxitalia.org\/en\/wp-json\/wp\/v2\/tags?post=5480"},{"taxonomy":"dipi_cpt_category","embeddable":true,"href":"https:\/\/msxitalia.org\/en\/wp-json\/wp\/v2\/dipi_cpt_category?post=5480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}