{"id":3924,"date":"2022-05-17T06:10:09","date_gmt":"2022-05-17T06:10:09","guid":{"rendered":"https:\/\/www.scijournal.org\/articles\/?p=3924"},"modified":"2022-07-14T03:11:13","modified_gmt":"2022-07-13T19:11:13","slug":"floor-symbol-in-latex","status":"publish","type":"post","link":"https:\/\/www.scijournal.org\/articles\/floor-symbol-in-latex","title":{"rendered":"How to write the floor symbol in LaTeX?"},"content":{"rendered":"\n<p><em>This article aims to show you the simplest and easiest way to write the <\/em><em>floor symbol in LaTeX<\/em><em>.<\/em><\/p>\n\n\n\n<p>This symbol is typically used in mathematics and computer science, usually when you are studying functions or creating code regarding functions. Today you will learn how to write this symbol in LaTeX.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Floor function&nbsp;<\/strong><\/h2>\n\n\n\n<p>In math and computer science, whenever the floor function is applied to a number, it returns the greatest integer less than or equal to the given real number value <strong><em>x<\/em><\/strong>. You can define it using \u201cfloor(x)\u201d or with two \u201chalf\u201d square brackets with the value x between them.&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"477\" height=\"67\" src=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image2-5.png\" alt=\"Floor Symbol In LaTeX : Floor symbol or sign. Images created with LaTeX by the author.\" class=\"wp-image-3926\" srcset=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image2-5.png 477w, https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image2-5-300x42.png 300w\" sizes=\"(max-width: 477px) 100vw, 477px\" \/><figcaption>Floor symbol or sign. Images created with LaTeX by the author.<\/figcaption><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\"><strong>Floor symbol in LaTeX<\/strong><\/h2>\n\n\n\n<p>To write it we do not need extra packages, it is already by default in its built-in LaTeX symbols, that\u2019s great news. First of all the math mode is mandatory for this expression, second we need two commands one for each side of the values used as arguments of the function, the first command is \\<strong>lfloor<\/strong> (left side) and the second one is \\<strong>rfloor<\/strong> (right side); therefore the argument will be between these two commands, for example<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\\documentclass{article}\n\\begin{document}\n\\begin{center}\n    \\verb|lfloor| \\verb|&#x5B;argument]| \\verb|rfloor|\\\\\n    $\\lfloor 2, -3, 5 \\rfloor$\\\\\n    $\\lfloor x \\rfloor$\\\\\n\\end{center}\n\\end{document}\n<\/pre><\/div>\n\n\n<p>Gives the output<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"432\" height=\"139\" src=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image4-4.png\" alt=\"Floor Symbol In LaTeX : Explanation for the denoted floor function. Images created with LaTeX by the author.\" class=\"wp-image-3927\" srcset=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image4-4.png 432w, https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image4-4-300x97.png 300w\" sizes=\"(max-width: 432px) 100vw, 432px\" \/><figcaption>Explanation for the denoted floor function. Images created with LaTeX by the author.<\/figcaption><\/figure><\/div>\n\n\n<p>We can notice what was mentioned before, the argument or value evaluated in the function is between both commands in the code.&nbsp;<\/p>\n\n\n\n<p>In case we have a fraction or maybe the floor symbols do not fit, we can use two already known commands, \\<strong>left<\/strong> and \\<strong>right<\/strong>. Let\u2019s look at an example<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\\begin{document}\n\\begin{center}\n    1) $\\lfloor \\dfrac{1}{x} \\rfloor$ \\\\\n    \\vspace{0.2cm}\n    2) $\\left \\lfloor \\dfrac{1}{x} \\right \\rfloor$\n\\end{center}\n\\end{document}\n<\/pre><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"205\" height=\"224\" src=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image5-2.png\" alt=\"Floor Symbol In LaTeX : With and without \\left \\right expressions. Images created with LaTeX by the author.\" class=\"wp-image-3928\"\/><figcaption>With and without \\<strong>left<\/strong> \\<strong>right<\/strong> expressions. Images created with LaTeX by the author.<\/figcaption><\/figure><\/div>\n\n\n<p>Note: \\<strong>vspace<\/strong>{} creates a vertical space between two lines, the height of the space is defined by the value inside the brackets.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Ceiling Function and Ceiling Symbol in LaTeX<\/strong><\/h2>\n\n\n\n<p>Just as we have the floor functions there is also the opposite of it. The ceiling function, also denoted ceil(x), returns the last integer greater than or equal to a given real number <strong><em>x<\/em><\/strong>. The symbols are the same as the floor function, except they are inverted,&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"490\" height=\"80\" src=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image3-6.png\" alt=\"Floor Symbol In LaTeX : Images created with LaTeX by the author.\" class=\"wp-image-3929\" srcset=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image3-6.png 490w, https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image3-6-300x49.png 300w\" sizes=\"(max-width: 490px) 100vw, 490px\" \/><figcaption>Images created with LaTeX by the author.<\/figcaption><\/figure><\/div>\n\n\n<p>In LaTeX we use \\<strong>lceil<\/strong> and \\<strong>rceil<\/strong> commands for each side of the ceiling function, the same principle from the floor function symbols apply for the ceil symbols. For example<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\\begin{center}\n    1) $\\left \\lceil \\dfrac{x^2}{3} \\right \\rceil$\\\\\n    \\vspace{0.2cm}\n    2) $\\lceil 5.4 \\rceil$\n\\end{center}\n\\end{document}\n<\/pre><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"197\" height=\"188\" src=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/05\/image1-6.png\" alt=\"Floor Symbol In LaTeX : Ceiling function; Images created with LaTeX by the author.\" class=\"wp-image-3930\"\/><figcaption>Ceiling function; Images created with LaTeX by the author.<\/figcaption><\/figure><\/div>\n\n\n<p>Here we have the basics&nbsp; for writing these two symbols and respective functions in LaTeX. There could be packages to help you write these symbols in different ways but most of the time, simpler is better or at least that is what we want to transmit whenever we can.<\/p>\n\n\n\n<p>I hope this post was helpful, and as always keep writing in LaTeX.<\/p>\n\n\n\n<p><em>All the images were created with LaTeX by the author.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Further Reading<\/strong><\/h2>\n\n\n\n<p><strong>LaTex Tutorial<\/strong> <strong>on Symbols<\/strong><\/p>\n\n\n\n<ol><li><a href=\"https:\/\/www.scijournal.org\/articles\/cross-product-symbol-in-latex\">How To Create A Cross Product Symbol In LaTeX<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/hat-symbol-in-latex\">How to create a hat symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/prime-symbol-in-latex\">How to create a prime symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/absolute-value-symbol-in-latex\">How to create an absolute value symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/approximate-symbol-in-latex\">How to create an approximate symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/intersection-symbol-in-latex\">How to create an intersection symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/empty-set-symbol-in-latex\">How to create the empty set symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/degree-symbol-in-latex\">How to write a degree symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/dot-product-in-latex\">How to write a dot product in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/greater-than-symbol-in-latex\">How to Write a Greater Than Symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/norm-symbol-in-latex\">How to write a norm symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/plus-minus-symbol-in-latex\">How to write A Plus-Minus Symbol in LaTeX<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/proportional-to-symbol-in-latex\">How to write a proportional to symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/real-number-symbol-in-latex\">How to write a real number symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/tilde-symbol-in-latex\">How to write a tilde symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/union-symbol-in-latex\">How to write a union symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/vector-in-latex\">How to write a vector in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/infinity-symbol-in-latex\">How to write an infinity symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/bold-text-in-latex\">How to write bold text in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/dots-symbols-in-latex\">How To Write Dots Symbols In LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/arrow-symbols-in-latex\">How to write the arrow symbols in LaTeX<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/degree-celsius-symbol-in-latex\">How to write the Degree celsius symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/equal-or-not-equal-symbol-in-latex\">How to write the equal or not equal symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/euro-symbol-in-latex\">How to write the Euro symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/gradient-operator-symbol-in-latex\">How to write the gradient operator symbol in LaTeX<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/greater-than-or-equal-to-symbol-in-latex\">How To Write The Greater Than Or Equal To Symbol In LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/integer-number-symbol-in-latex\">How to write the integer number symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/less-than-symbol-in-latex\">How to write the less than symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/natural-numbers-symbol-in-latex\">How to write the Natural numbers symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/parallel-symbol-in-latex\">How to write the parallel symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/percent-symbol-in-latex\">How to write the percent symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/square-root-symbol-in-latex\">How to write the square root symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/subset-in-latex\">How To Write The Symbol For A Subset In LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/therefore-in-latex\">How to write the symbol for therefore in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/mathbb-command-in-latex\">How to write with the mathbb in LaTeX?<\/a><\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>This article aims to show you the simplest and easiest way to write the floor symbol in LaTeX. This symbol is typically used in mathematics and computer science, usually when you are studying functions or creating code regarding functions. Today you will learn how to write this symbol in LaTeX. Floor function&nbsp; In math and &#8230; <a title=\"How to write the floor symbol in LaTeX?\" class=\"read-more\" href=\"https:\/\/www.scijournal.org\/articles\/floor-symbol-in-latex\" aria-label=\"Read more about How to write the floor symbol in LaTeX?\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":3925,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7],"tags":[52],"_links":{"self":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/3924"}],"collection":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/comments?post=3924"}],"version-history":[{"count":2,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/3924\/revisions"}],"predecessor-version":[{"id":5631,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/3924\/revisions\/5631"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/media\/3925"}],"wp:attachment":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/media?parent=3924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/categories?post=3924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/tags?post=3924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}