{"id":10057,"date":"2017-04-09T13:44:44","date_gmt":"2017-04-09T05:44:44","guid":{"rendered":"http:\/\/www.vbtutor.net\/?page_id=10057"},"modified":"2018-06-22T13:51:04","modified_gmt":"2018-06-22T05:51:04","slug":"visual-basic-2017-lesson-18-mathematical-functions","status":"publish","type":"page","link":"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2017-lesson-18-mathematical-functions\/","title":{"rendered":"Visual Basic 2017 Lesson 18: Mathematical Functions"},"content":{"rendered":"<h4 style=\"text-align: center;\"><a title=\"visual basic 2017 tutorial lesson 17\" href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2017-lesson-17-functions\/\">[Lesson 17]<\/a> &lt;&lt; <a title=\"visual basic 2017 tutorial\" href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2017-tutorial\/\">[Contents]<\/a> &gt;&gt;<a title=\"visual basic 2015 tutorial lesson 19\" href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2017-lesson-19-trigonometric-functions\/\">[Lesson 19]<\/a><\/h4>\n<p>In\u00a0Visual Basic 2017, we can write codes that can perform arithmetic\u00a0operations using standard arithmetic operators. However, for more complex mathematical calculations, we shall use the built-in mathematical functions in Visual Basic 2017. There are numerous built-in mathematical functions in Visual Basic 2017. Among them are Abs, Exp, Fix, Int, Rnd, Round, sqrt\u00a0and more. We shall deal with trigonometric functions and Financial Functions in coming\u00a0lessons. Most mathematical functions belong to the <strong>Math<\/strong> class in Visual Basic 2015.\u00a0However, not all mathematical functions belong to the Math class.<br \/>\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"3393818013\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h3>18.1 The Abs function<\/h3>\n<p>In Visual Basic 2017, the Abs function returns the absolute value of a given number.The syntax is<br \/>\n<strong>Math. Abs (Number)<\/strong><br \/>\n<strong>Example 18.1<\/strong><\/p>\n<p>In this example, we shall add a text box control for the user to input his or her number and a label control to display the absolute value of the number. We need to use the Val function to convert text to a numeric value. Rename the textbox as TxtNum and the label as LblAbs.<\/p>\n<p><strong>The Code\u00a0<\/strong><\/p>\n<pre style=\"font-size: 110%;\">Private Sub BtnComp_Click(sender As Object, e As EventArgs) Handles BtnComp.Click\r\nLblAbs.Text = Math.Abs(Val(TxtNum.Text))\r\nEnd Sub\r\n<\/pre>\n<h4>The output<\/h4>\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4686\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.1.jpg\" alt=\"vb2013_figure18.1\" width=\"300\" height=\"300\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\u00a0<strong>Figure 18.1<\/strong><\/p>\n<p><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"3393818013\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h3><strong>18.2 The Exp function<\/strong><\/h3>\n<p>In Visual Basic 2017, the Exp function returns the exponential value of a given number. For example, Exp(1)=e=2.71828182<\/p>\n<p>The syntax is<\/p>\n<p><strong>Math.Exp (Number)<\/strong><\/p>\n<h4><strong>\u00a0Example 18.2<\/strong><\/h4>\n<p>In this example, we shall add a text box control for the user to input his or her number and a label control to display the exponential value of the number. Rename the textbox as TxtNum and the label as LblAbs.<\/p>\n<h4><strong>The Code<\/strong><\/h4>\n<pre style=\"font-size: 110%;\">Private Sub BtnComp_Click(sender As Object, e As EventArgs) Handles BtnComp.Click\r\nLblExp.Text = Math.Exp(Val(TxtNum.Text))\r\nEnd Sub\r\n<\/pre>\n<p>* We use the Val function to convert a string to numeric value<\/p>\n<p><strong>The Output<\/strong><\/p>\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4690\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.2.jpg\" alt=\"vb2013_figure18.2\" width=\"300\" height=\"300\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\u00a0<strong>Figure 18.2\u00a0<\/strong><\/p>\n<h3 style=\"text-align: left;\"><strong>18.3 The Fix Function<\/strong><\/h3>\n<p style=\"text-align: left;\">The Fix function truncates the decimal part of a positive number and returns the largest integer smaller than the number. However, when the number is negative, it returns the smallest integer larger than the number. Fix does not belong to the Math class, therefore, we do not use the Math keyword. the syntax is<\/p>\n<p style=\"text-align: left;\"><strong>Fix(number)<\/strong><\/p>\n<h4>Example 18.3<\/h4>\n<pre style=\"font-size: 110%;\">Private Sub BtnComp_Click(sender As Object, e As EventArgs) Handles BtnComp.Click\r\nLblFixNum1.Text = Fix(Val(TxtPosNum.Text))\r\nLblFixNum2.Text = Fix(Val(TxtNegNum.Text))\r\nEnd Sub\r\n<\/pre>\n<p>The Output<\/p>\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4693\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.3.jpg\" alt=\"vb2013_figure18.3\" width=\"311\" height=\"300\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\u00a0<strong>Figure 18.3<\/strong><\/p>\n<h3><strong>18.4 The Int Function<\/strong><\/h3>\n<p>The Int is a function that converts a number into an integer by truncating its decimal part and the resulting integer is the largest integer that is smaller than he number. Int also does not belong to the Math class so there is no need to use the Math keyword.<\/p>\n<p>For example<\/p>\n<p>Int(2.4)=2, Int(6.9)=6 , Int(-5.7)=-6, Int(-99.8)=-100<\/p>\n<h3><strong>18.5 The Log Function<\/strong><\/h3>\n<p>The Log function is the function that returns the natural logarithm of a number.<\/p>\n<p>The syntax is<\/p>\n<p><strong>Math.Log(Number)<\/strong><\/p>\n<h4>Example 18.4<\/h4>\n<pre style=\"font-size: 110%;\">Private Sub BtnComp_Click(sender As Object, e As EventArgs) Handles BtnComp.Click\r\nLblLog.Text = Math.Log(Val(TxtNum.Text))\r\nEnd Sub\r\n<\/pre>\n<p>The Output<br \/>\n<a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4701\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.4.jpg\" alt=\"vb2013_figure18.4\" width=\"311\" height=\"300\" \/><\/a><br \/>\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"3393818013\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<p style=\"text-align: center;\"><strong>Figure 18.4<\/strong><\/p>\n<h3><strong style=\"font-size: 1.285714286rem; line-height: 1.6;\">18.6 The Rnd( ) Function<\/strong><\/h3>\n<p>Rnd is a very useful function in Visual Basic 2017. We use the Rnd function to write code that involves chance and probability. The Rnd function returns a random value between 0 and 1. Random numbers in their original form are not very useful in programming until we convert them to integers. For example, if we need to obtain a random output of 6 integers ranging from 1 to 6, which makes the program behave like a virtual dice, we need to convert the random numbers to integers using the formula Int(Rnd*6)+1.<\/p>\n<p>The Rnd() function belongs to the <strong>VBMath<\/strong> class in Visual Basic 2015. The syntax is<\/p>\n<p><strong>VBMath.Rnd()*Number<\/strong><\/p>\n<h4>Example 18.5<\/h4>\n<pre style=\"font-size: 110%;\">Private Sub BtnGen_Click(sender As Object, e As EventArgs) Handles BtnGen.Click\r\nLblRnd.Text = Int(VBMath.Rnd() * 6) + 1\r\nEnd Sub\r\n<\/pre>\n<p>Notice that the Rnd() function belongs to the <strong>VBMath<\/strong> class in Visual Basic 2015.<\/p>\n<p>In this example, Int(Rnd*6) will generate a random integer between 0 and 5 because the function Int truncates the decimal part of the random number and returns an integer. After adding 1, you will get a random number between 1 and 6 every time you click the command button. For example, let say the random number generated is 0.98, after multiplying it by 6, it becomes 5.88, and using the integer function Int(5.88) will convert the number to 5, and after adding 1 you will get 6.<\/p>\n<p>The Output<\/p>\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4706\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.5.jpg\" alt=\"vb2013_figure18.5\" width=\"300\" height=\"300\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><strong>Figure 18.5<\/strong><\/p>\n<p>*We shall learn \u00a0how to create an animated dice using a Timer control in later lesson<\/p>\n<h2><strong>18.7 The Round Function<\/strong><\/h2>\n<p>The Round function is the function that rounds up a number to a certain number of decimal places. The syntax\u00a0\u00a0is<\/p>\n<p><strong>Math.Round (number, m) <\/strong><\/p>\n<p>which means to round a number to m decimal places.<\/p>\n<p>For example, Math.Round (7.2567, 2) =7.26<\/p>\n<p><strong>Example 18.6<\/strong><\/p>\n<pre style=\"font-size: 110%;\">Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click\r\nLabel1.Text = Math.Round(Val(TextBox1.Text), 2)\r\nEnd Sub\r\n<\/pre>\n<p>The Output<\/p>\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4709\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.6.jpg\" alt=\"vb2013_figure18.6\" width=\"300\" height=\"300\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\u00a0<strong>Figure 18.6\u00a0<\/strong><\/p>\n<h2 style=\"text-align: left;\"><strong>18.8 The Sqrt Function<\/strong><\/h2>\n<p>The sqrt returns the square root of a number. The syntax is as follows:<\/p>\n<p><strong>Math.Sqrt(Number)\u00a0<\/strong><\/p>\n<h4>Example 18.7<\/h4>\n<pre style=\"font-size: 110%;\">Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click\r\nMsgBox(Math.Sqrt(400))\r\nEnd Sub\r\n<\/pre>\n<p>The result is 20<br \/>\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block;\" data-ad-format=\"autorelaxed\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"1492877908\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h2 style=\"text-align: center;\"><a title=\"visual basic 2017 tutorial lesson 17\" href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2017-lesson-17-functions\/\">[Lesson 17]<\/a>\u00a0&lt;&lt;\u00a0<a title=\"visual basic 2017 tutorial\" href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2017-tutorial\/\">[Contents]<\/a>\u00a0&gt;&gt;<a title=\"visual basic 2015 tutorial lesson 19\" href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2017-lesson-19-trigonometric-functions\/\">[Lesson 19]<\/a><\/h2>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[Lesson 17] &lt;&lt; [Contents] &gt;&gt;[Lesson 19] In\u00a0Visual Basic 2017, we can write codes that can perform arithmetic\u00a0operations using standard arithmetic operators. However, for more complex mathematical calculations, we shall use the built-in mathematical functions in Visual Basic 2017. There are numerous built-in mathematical functions in Visual Basic 2017. Among them are Abs, Exp, Fix, Int, &hellip; <a href=\"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2017-lesson-18-mathematical-functions\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Visual Basic 2017 Lesson 18: Mathematical Functions<\/span><\/a><\/p>\n","protected":false},"author":23013,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-10057","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Visual Basic 2017 Lesson 18: Mathematical Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB<\/title>\n<meta name=\"description\" content=\"Learn how to handle mathematical functions in visual basic 2017\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson18.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Visual Basic 2017 Lesson 18: Mathematical Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\" \/>\n<meta property=\"og:description\" content=\"Learn how to handle mathematical functions in visual basic 2017\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson18.html\" \/>\n<meta property=\"og:site_name\" content=\"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Vbtutor\" \/>\n<meta property=\"article:modified_time\" content=\"2018-06-22T05:51:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.1.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@liewvk\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2017-lesson-18-mathematical-functions\/\",\"url\":\"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson18.html\",\"name\":\"Visual Basic 2017 Lesson 18: Mathematical Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\",\"isPartOf\":{\"@id\":\"https:\/\/www.vbtutor.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson18.html#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson18.html#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.1.jpg\",\"datePublished\":\"2017-04-09T05:44:44+00:00\",\"dateModified\":\"2018-06-22T05:51:04+00:00\",\"description\":\"Learn how to handle mathematical functions in visual basic 2017\",\"breadcrumb\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson18.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson18.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson18.html#primaryimage\",\"url\":\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.1.jpg\",\"contentUrl\":\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.1.jpg\",\"width\":300,\"height\":300},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson18.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vbtutor.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Visual Basic 2017 Lesson 18: Mathematical Functions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vbtutor.net\/#website\",\"url\":\"https:\/\/www.vbtutor.net\/\",\"name\":\"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\",\"description\":\"Start learning Visual Basic from beginner to advanced. Includes VB.NET, VBA, and classic VB tutorials for students and professionals.\",\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Visual Basic 2017 Lesson 18: Mathematical Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","description":"Learn how to handle mathematical functions in visual basic 2017","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson18.html","og_locale":"en_US","og_type":"article","og_title":"Visual Basic 2017 Lesson 18: Mathematical Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","og_description":"Learn how to handle mathematical functions in visual basic 2017","og_url":"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson18.html","og_site_name":"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","article_publisher":"https:\/\/www.facebook.com\/Vbtutor","article_modified_time":"2018-06-22T05:51:04+00:00","og_image":[{"url":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.1.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@liewvk","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2017-lesson-18-mathematical-functions\/","url":"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson18.html","name":"Visual Basic 2017 Lesson 18: Mathematical Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","isPartOf":{"@id":"https:\/\/www.vbtutor.net\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson18.html#primaryimage"},"image":{"@id":"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson18.html#primaryimage"},"thumbnailUrl":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.1.jpg","datePublished":"2017-04-09T05:44:44+00:00","dateModified":"2018-06-22T05:51:04+00:00","description":"Learn how to handle mathematical functions in visual basic 2017","breadcrumb":{"@id":"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson18.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson18.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson18.html#primaryimage","url":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.1.jpg","contentUrl":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure18.1.jpg","width":300,"height":300},{"@type":"BreadcrumbList","@id":"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson18.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vbtutor.net\/"},{"@type":"ListItem","position":2,"name":"Visual Basic 2017 Lesson 18: Mathematical Functions"}]},{"@type":"WebSite","@id":"https:\/\/www.vbtutor.net\/#website","url":"https:\/\/www.vbtutor.net\/","name":"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","description":"Start learning Visual Basic from beginner to advanced. Includes VB.NET, VBA, and classic VB tutorials for students and professionals.","inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/10057","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/users\/23013"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/comments?post=10057"}],"version-history":[{"count":16,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/10057\/revisions"}],"predecessor-version":[{"id":12992,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/10057\/revisions\/12992"}],"wp:attachment":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/media?parent=10057"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/categories?post=10057"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/tags?post=10057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}