{"id":26693,"date":"2025-07-29T09:45:56","date_gmt":"2025-07-29T06:45:56","guid":{"rendered":"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/"},"modified":"2025-09-01T18:33:22","modified_gmt":"2025-09-01T15:33:22","slug":"bash-how-to-round-numbers-to-2-decimal-places-ceviri","status":"publish","type":"post","link":"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/","title":{"rendered":"Bash: How to Round Numbers to 2 Decimal Places (\u00c7eviri)"},"content":{"rendered":"<p># Bash&#8217;te Say\u0131lar\u0131 2 Ondal\u0131k Basama\u011fa Yuvarlama<\/p>\n<p>Bir finans uygulamas\u0131 geli\u015ftiriyor, bilimsel verileri i\u015fliyor veya basit bir hesaplama yap\u0131yorsan\u0131z, Bash beti\u011finizde say\u0131lar\u0131 iki ondal\u0131k basama\u011fa yuvarlaman\u0131z gerekebilir.  Bu makale, Bash&#8217;te say\u0131 yuvarlaman\u0131n farkl\u0131 y\u00f6ntemlerini, performans optimizasyonunu ve olas\u0131 sorunlar\u0131 ele alarak, yeni ba\u015flayanlardan ileri d\u00fczey kullan\u0131c\u0131lara kadar herkes i\u00e7in kapsaml\u0131 bir rehber sunmaktad\u0131r.  Bash beti\u011finizde hassas ondal\u0131k say\u0131larla \u00e7al\u0131\u015fman\u0131n inceliklerini ke\u015ffedin ve verilerinizle g\u00fcvenilir bir \u015fekilde \u00e7al\u0131\u015fman\u0131n yollar\u0131n\u0131 \u00f6\u011frenin.<\/p>\n<p><strong>Bash&#8217;te Ondal\u0131k Say\u0131larla \u00c7al\u0131\u015fman\u0131n Temelleri<\/strong><\/p>\n<p>Bash, temelde bir metin i\u015flemcisi oldu\u011fundan, ondal\u0131k say\u0131larla do\u011frudan \u00e7al\u0131\u015fmak i\u00e7in \u00f6zel ara\u00e7lara ihtiya\u00e7 duyar.  <code class=\"language-\">bc<\/code> (Basic Calculator) arac\u0131, bu konuda bize yard\u0131mc\u0131 olur. <code class=\"language-\">bc<\/code> , aritmetik i\u015flemler yapabilen ve ondal\u0131k say\u0131lar\u0131 destekleyen g\u00fc\u00e7l\u00fc bir komut sat\u0131r\u0131 arac\u0131d\u0131r.  Ayr\u0131ca, <code class=\"language-\">printf<\/code> komutu, say\u0131lar\u0131n bi\u00e7imlendirilmesinde \u00f6nemli bir rol oynar.  Bu iki arac\u0131n birle\u015fimi, Bash beti\u011finizde hassas ondal\u0131k say\u0131 i\u015flemleri yapman\u0131z\u0131 sa\u011flar.  \u00d6rne\u011fin, <code class=\"language-\">bc<\/code> ile 3.14159&#8217;u 2 ondal\u0131k basama\u011fa yuvarlamak i\u00e7in \u015fu komutu kullanabilirsiniz:<\/p>\n<pre class=\"language-bash\"><code>echo &quot;scale=2; 3.14159&quot; | bc<\/code><\/pre>\n<p>Bu komut, <code class=\"language-\">bc<\/code>&#8216;ye <code class=\"language-\">scale=2<\/code> ile 2 ondal\u0131k basamak kullanmas\u0131n\u0131 s\u00f6yler ve ard\u0131ndan yuvarlanacak say\u0131y\u0131 verir.  <code class=\"language-\">echo<\/code> komutu, \u00e7\u0131kt\u0131y\u0131 <code class=\"language-\">bc<\/code>&#8216;ye g\u00f6nderir.  Sonu\u00e7 olarak, 3.14 elde ederiz.  Ancak bu, sadece basit bir \u00f6rnektir. Daha karma\u015f\u0131k senaryolar i\u00e7in daha geli\u015fmi\u015f tekniklere ihtiya\u00e7 duyabiliriz.<\/p>\n<p><strong>Yeni Ba\u015flayanlar \u0130\u00e7in Ad\u0131m Ad\u0131m Yuvarlama<\/strong><\/p>\n<p><strong>Ad\u0131m 1: <code class=\"language-\">bc<\/code> arac\u0131n\u0131 kullanarak yuvarlama:<\/strong><\/p>\n<p>\u00d6ncelikle, <code class=\"language-\">bc<\/code> arac\u0131n\u0131n kullan\u0131m\u0131yla ba\u015flayal\u0131m.  A\u015fa\u011f\u0131daki \u00f6rnekte, de\u011fi\u015fken i\u00e7indeki say\u0131y\u0131 2 ondal\u0131k basama\u011fa yuvarl\u0131yoruz:<\/p>\n<pre class=\"language-bash\"><code>number=3.14159\nrounded_number=$(echo &quot;scale=2; $number&quot; | bc)\necho &quot;Yuvarlanm\u0131\u015f say\u0131: $rounded_number&quot;<\/code><\/pre>\n<p>Bu kod, <code class=\"language-\">number<\/code> de\u011fi\u015fkenindeki de\u011feri <code class=\"language-\">bc<\/code> arac\u0131na g\u00f6nderir ve <code class=\"language-\">scale=2<\/code> ile 2 ondal\u0131k basama\u011fa yuvarlanmas\u0131n\u0131 sa\u011flar.  Sonu\u00e7, <code class=\"language-\">rounded_number<\/code> de\u011fi\u015fkenine atan\u0131r ve ekrana yazd\u0131r\u0131l\u0131r.<\/p>\n<p><strong>Ad\u0131m 2: <code class=\"language-\">printf<\/code> ile bi\u00e7imlendirme:<\/strong><\/p>\n<p><code class=\"language-\">printf<\/code> komutu, \u00e7\u0131kt\u0131 formatlamas\u0131n\u0131 sa\u011flar ve daha temiz bir \u00e7\u00f6z\u00fcm sunar.  A\u015fa\u011f\u0131daki \u00f6rnek, <code class=\"language-\">printf<\/code> kullanarak ayn\u0131 i\u015flemi yapar:<\/p>\n<pre class=\"language-bash\"><code>number=3.14159\nrounded_number=$(printf &quot;%.2f&quot; $number)\necho &quot;Yuvarlanm\u0131\u015f say\u0131: $rounded_number&quot;<\/code><\/pre>\n<p><code class=\"language-\">%.2f<\/code> format belirteci, say\u0131n\u0131n 2 ondal\u0131k basama\u011fa yuvarlanmas\u0131n\u0131 ve ondal\u0131k say\u0131 olarak g\u00f6sterilmesini sa\u011flar. Bu y\u00f6ntem, <code class=\"language-\">bc<\/code>&#8216;ye g\u00f6re daha temiz ve daha okunabilirdir.<\/p>\n<p><strong>Orta Seviye: Ger\u00e7ek Hayat \u00d6rne\u011fi ve Optimizasyon \u0130pu\u00e7lar\u0131<\/strong><\/p>\n<p>Bir e-ticaret uygulamas\u0131 d\u00fc\u015f\u00fcnelim.  \u00dcr\u00fcnlerin fiyatlar\u0131n\u0131 hesaplamak ve kullan\u0131c\u0131ya g\u00f6stermek i\u00e7in bir Bash beti\u011fi yaz\u0131yoruz.  \u00dcr\u00fcn fiyat\u0131, vergi ve kar marj\u0131 hesab\u0131ndan sonra 2 ondal\u0131k basama\u011fa yuvarlanmal\u0131d\u0131r.<\/p>\n<pre class=\"language-bash\"><code>urun_fiyati=12.995\nvergi_orani=0.18\nkar_marji=0.25\n\ntoplam_fiyat=$(echo &quot;scale=10; ($urun_fiyati * (1 + $vergi_orani)) * (1 + $kar_marji)&quot; | bc)\nyuvarlanmis_fiyat=$(printf &quot;%.2f&quot; $toplam_fiyat)\n\necho &quot;Yuvarlanm\u0131\u015f toplam fiyat: $yuvarlanmis_fiyat&quot;<\/code><\/pre>\n<p>Bu \u00f6rnekte, \u00f6nce toplam fiyat hesaplan\u0131r, daha sonra <code class=\"language-\">printf<\/code> ile 2 ondal\u0131k basama\u011fa yuvarlan\u0131r.  <code class=\"language-\">scale=10<\/code> kullan\u0131m\u0131, ara hesaplamalarda hassasiyet kayb\u0131n\u0131 \u00f6nlemek i\u00e7in \u00f6nemlidir.  Optimizasyon i\u00e7in, gereksiz i\u015flem ad\u0131mlar\u0131ndan ka\u00e7\u0131nmak ve uygun veri tiplerini se\u00e7mek \u00f6nemlidir.  Bu \u00f6rnekte, <code class=\"language-\">bc<\/code>&#8216;nin y\u00fcksek hassasiyetli hesaplamalar\u0131 kullan\u0131m\u0131, daha do\u011fru sonu\u00e7lar sa\u011flar.<\/p>\n<p><strong>\u0130leri D\u00fczey: Performans Analizi ve Edge Case&#8217;ler<\/strong><\/p>\n<p>\u00c7ok b\u00fcy\u00fck veri k\u00fcmeleriyle \u00e7al\u0131\u015f\u0131rken, performans \u00f6nemli bir fakt\u00f6r haline gelir.  <code class=\"language-\">bc<\/code>&#8216;nin her \u00e7a\u011fr\u0131s\u0131, baz\u0131 performans maliyetleri do\u011furabilir.  Bu nedenle, b\u00fcy\u00fck veri k\u00fcmeleri i\u00e7in daha verimli y\u00f6ntemler ara\u015ft\u0131r\u0131lmal\u0131d\u0131r.  \u00d6rne\u011fin, <code class=\"language-\">awk<\/code> arac\u0131, <code class=\"language-\">bc<\/code>&#8216;ye g\u00f6re daha h\u0131zl\u0131 olabilir.  Ancak, <code class=\"language-\">awk<\/code>&#8216;\u0131n kullan\u0131m\u0131, daha karma\u015f\u0131k kod gerektirir.<\/p>\n<p><strong>Edge Case&#8217;ler:<\/strong><\/p>\n<p>* <strong>Negatif say\u0131lar:<\/strong>  <code class=\"language-\">printf<\/code> ve <code class=\"language-\">bc<\/code>, negatif say\u0131larla da sorunsuz \u00e7al\u0131\u015f\u0131r.<br \/>\n* <strong>\u00c7ok b\u00fcy\u00fck say\u0131lar:<\/strong> \u00c7ok b\u00fcy\u00fck say\u0131lar i\u00e7in, <code class=\"language-\">bc<\/code>&#8216;nin <code class=\"language-\">scale<\/code> ayar\u0131n\u0131n dikkatlice se\u00e7ilmesi gerekir.  \u00c7ok b\u00fcy\u00fck bir <code class=\"language-\">scale<\/code> de\u011feri, performans sorunlar\u0131na yol a\u00e7abilir.<br \/>\n* <strong>Yuvarlama kurallar\u0131:<\/strong>  <code class=\"language-\">printf<\/code> varsay\u0131lan olarak yuvarlama yapar.  Farkl\u0131 yuvarlama y\u00f6ntemleri (\u00f6rne\u011fin, a\u015fa\u011f\u0131ya yuvarlama) i\u00e7in, daha geli\u015fmi\u015f teknikler kullan\u0131lmal\u0131d\u0131r.<\/p>\n<p>Bu edge case&#8217;leri g\u00f6z \u00f6n\u00fcnde bulundurmak, uygulaman\u0131z\u0131n g\u00fcvenilirli\u011fini art\u0131r\u0131r.  [Fatih Soysal&#8217;\u0131n](https:\/\/fatihsoysal.com) Bash programlama \u00fczerine yazd\u0131\u011f\u0131 di\u011fer makalelerine bakarak bu konuda daha fazla bilgi edinebilirsiniz.<\/p>\n<p><strong>Bash&#8217;te Yuvarlama \u0130\u00e7in Farkl\u0131 Yakla\u015f\u0131mlar\u0131n Kar\u015f\u0131la\u015ft\u0131r\u0131lmas\u0131<\/strong><\/p>\n<p><code class=\"language-\">bc<\/code> ve <code class=\"language-\">printf<\/code> d\u0131\u015f\u0131nda, di\u011fer ara\u00e7lar da kullan\u0131labilir.  Ancak, bu ara\u00e7lar\u0131n performans ve kullan\u0131m kolayl\u0131\u011f\u0131 a\u00e7\u0131s\u0131ndan farkl\u0131l\u0131klar\u0131 vard\u0131r.  \u00d6rne\u011fin, <code class=\"language-\">awk<\/code> arac\u0131, b\u00fcy\u00fck veri k\u00fcmeleri i\u00e7in daha verimli olabilir, ancak kod yaz\u0131m\u0131 daha karma\u015f\u0131k olabilir.  Do\u011fru arac\u0131n se\u00e7imi, projenizin \u00f6zel ihtiya\u00e7lar\u0131na ba\u011fl\u0131d\u0131r.  Performans kar\u015f\u0131la\u015ft\u0131rmalar\u0131, farkl\u0131 ara\u00e7lar\u0131n g\u00fc\u00e7l\u00fc ve zay\u0131f y\u00f6nlerini anlamak i\u00e7in \u00f6nemlidir.  B\u00fcy\u00fck \u00f6l\u00e7ekli projelerde, performans testleri yaparak en uygun y\u00f6ntemi belirlemek \u00f6nemlidir.<\/p>\n<p><strong>Ger\u00e7ek D\u00fcnya Senaryolar\u0131: Vaka \u00c7al\u0131\u015fmalar\u0131<\/strong><\/p>\n<p><strong>Vaka \u00c7al\u0131\u015fmas\u0131 1: Finansal Uygulama<\/strong><\/p>\n<p>Bir finansal uygulamada, faiz hesaplamalar\u0131 ve \u00f6deme planlar\u0131 olu\u015fturmak i\u00e7in ondal\u0131k say\u0131lar kullan\u0131l\u0131r.  Bu durumda, hassas yuvarlama i\u015flemleri \u00e7ok \u00f6nemlidir.  <code class=\"language-\">bc<\/code>&#8216;nin y\u00fcksek hassasiyetli hesaplamalar\u0131, finansal uygulamalar i\u00e7in idealdir.<\/p>\n<p><strong>Vaka \u00c7al\u0131\u015fmas\u0131 2: Bilimsel Veri \u0130\u015fleme<\/strong><\/p>\n<p>Bilimsel veri i\u015flemede, \u00f6l\u00e7\u00fcm sonu\u00e7lar\u0131 genellikle ondal\u0131k say\u0131lar i\u00e7erir.  Bu verileri i\u015flerken, hassas yuvarlama i\u015flemleri, sonu\u00e7lar\u0131n do\u011frulu\u011funu etkiler.  <code class=\"language-\">printf<\/code> veya <code class=\"language-\">awk<\/code>, bilimsel verilerle \u00e7al\u0131\u015fmak i\u00e7in uygun ara\u00e7lard\u0131r.<\/p>\n<p><strong>Sonu\u00e7<\/strong><\/p>\n<p>Bash&#8217;te say\u0131lar\u0131 iki ondal\u0131k basama\u011fa yuvarlamak i\u00e7in \u00e7e\u015fitli y\u00f6ntemler mevcuttur.  <code class=\"language-\">bc<\/code> ve <code class=\"language-\">printf<\/code> en yayg\u0131n kullan\u0131lan ara\u00e7lard\u0131r, ancak <code class=\"language-\">awk<\/code> gibi di\u011fer ara\u00e7lar da kullan\u0131labilir.  Se\u00e7ilen y\u00f6ntem, projenin gereksinimlerine ve veri k\u00fcmesinin b\u00fcy\u00fckl\u00fc\u011f\u00fcne ba\u011fl\u0131d\u0131r.  Performans optimizasyonu ve edge case&#8217;lerin ele al\u0131nmas\u0131, uygulaman\u0131z\u0131n g\u00fcvenilirli\u011fini ve do\u011frulu\u011funu art\u0131r\u0131r.  Bu makalede ele al\u0131nan bilgiler, Bash beti\u011finizde ondal\u0131k say\u0131larla g\u00fcvenilir bir \u015fekilde \u00e7al\u0131\u015fman\u0131za yard\u0131mc\u0131 olacakt\u0131r.<\/p>\n<p><strong>S\u0131k\u00e7a Sorulan Sorular:<\/strong><\/p>\n<p>1. <strong><code class=\"language-\">bc<\/code> ve <code class=\"language-\">printf<\/code> aras\u0131nda hangi y\u00f6ntemi kullanmal\u0131y\u0131m?<\/strong>  <code class=\"language-\">printf<\/code>, daha basit ve okunabilir kod sa\u011flar, ancak <code class=\"language-\">bc<\/code>, daha karma\u015f\u0131k hesaplamalar i\u00e7in daha fazla esneklik sunar.<\/p>\n<p>2. <strong>Negatif say\u0131lar\u0131 nas\u0131l yuvarlar\u0131m?<\/strong>  Hem <code class=\"language-\">bc<\/code> hem de <code class=\"language-\">printf<\/code>, negatif say\u0131larla sorunsuz \u00e7al\u0131\u015f\u0131r.<\/p>\n<p>3. <strong>Farkl\u0131 yuvarlama y\u00f6ntemleri nas\u0131l uygulan\u0131r?<\/strong>  Varsay\u0131lan yuvarlama davran\u0131\u015f\u0131n\u0131 de\u011fi\u015ftirmek i\u00e7in, daha geli\u015fmi\u015f teknikler ve muhtemelen \u00f6zel fonksiyonlar kullanman\u0131z gerekebilir.<\/p>\n<p>4. <strong>\u00c7ok b\u00fcy\u00fck say\u0131larla \u00e7al\u0131\u015f\u0131rken ne yapmal\u0131y\u0131m?<\/strong>  <code class=\"language-\">bc<\/code>&#8216;nin <code class=\"language-\">scale<\/code> ayar\u0131n\u0131 dikkatlice se\u00e7in ve performans testleri yap\u0131n.<\/p>\n<p>5. <strong>Performans\u0131 nas\u0131l optimize edebilirim?<\/strong>  Gereksiz i\u015flem ad\u0131mlar\u0131ndan ka\u00e7\u0131n\u0131n, uygun ara\u00e7lar\u0131 se\u00e7in ve b\u00fcy\u00fck veri k\u00fcmeleri i\u00e7in daha verimli y\u00f6ntemler ara\u015ft\u0131r\u0131n.<\/p>\n<p>Yazar: Fatih Soysal<\/p>\n","protected":false},"excerpt":{"rendered":"# Bash&#8217;te Say\u0131lar\u0131 2 Ondal\u0131k Basama\u011fa Yuvarlama Bir finans uygulamas\u0131 geli\u015ftiriyor, bilimsel verileri i\u015fliyor veya basit bir hesaplama&hellip;","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_page_header_type":"","csco_page_load_nextpost":"","csco_page_subscribe_form":"","csco_page_contact_form":"","footnotes":""},"categories":[1328],"tags":[],"class_list":{"0":"post-26693","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-bash","7":"cs-entry","8":"cs-video-wrap"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.5 (Yoast SEO v25.3.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Bash: How to Round Numbers to 2 Decimal Places (\u00c7eviri)<\/title>\n<meta name=\"description\" content=\"Hi\u00e7bir etiketi bulunamad\u0131.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bash: How to Round Numbers to 2 Decimal Places (\u00c7eviri)\" \/>\n<meta property=\"og:description\" content=\"Hi\u00e7bir etiketi bulunamad\u0131.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/\" \/>\n<meta property=\"og:site_name\" content=\"Kodlar\u0131n Gizemli D\u00fcnyas\u0131\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-29T06:45:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-01T15:33:22+00:00\" \/>\n<meta name=\"author\" content=\"Fatih Soysal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fatih Soysal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/\"},\"author\":{\"name\":\"Fatih Soysal\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"headline\":\"Bash: How to Round Numbers to 2 Decimal Places (\u00c7eviri)\",\"datePublished\":\"2025-07-29T06:45:56+00:00\",\"dateModified\":\"2025-09-01T15:33:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/\"},\"wordCount\":1135,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"articleSection\":[\"Bash\"],\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/#respond\"]}],\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/\",\"name\":\"Bash: How to Round Numbers to 2 Decimal Places (\u00c7eviri)\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\"},\"datePublished\":\"2025-07-29T06:45:56+00:00\",\"dateModified\":\"2025-09-01T15:33:22+00:00\",\"description\":\"Hi\u00e7bir etiketi bulunamad\u0131.\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/fatihsoysal.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bash: How to Round Numbers to 2 Decimal Places (\u00c7eviri)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/\",\"name\":\"Fatihsoysal.com\",\"description\":\"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim\",\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"tr\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\",\"name\":\"Fatih Soysal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"contentUrl\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"width\":512,\"height\":512,\"caption\":\"Fatih Soysal\"},\"logo\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Bash: How to Round Numbers to 2 Decimal Places (\u00c7eviri)","description":"Hi\u00e7bir etiketi bulunamad\u0131.","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":"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/","og_locale":"tr_TR","og_type":"article","og_title":"Bash: How to Round Numbers to 2 Decimal Places (\u00c7eviri)","og_description":"Hi\u00e7bir etiketi bulunamad\u0131.","og_url":"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/","og_site_name":"Kodlar\u0131n Gizemli D\u00fcnyas\u0131","article_published_time":"2025-07-29T06:45:56+00:00","article_modified_time":"2025-09-01T15:33:22+00:00","author":"Fatih Soysal","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Fatih Soysal","Tahmini okuma s\u00fcresi":"6 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/#article","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/"},"author":{"name":"Fatih Soysal","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"headline":"Bash: How to Round Numbers to 2 Decimal Places (\u00c7eviri)","datePublished":"2025-07-29T06:45:56+00:00","dateModified":"2025-09-01T15:33:22+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/"},"wordCount":1135,"commentCount":0,"publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"articleSection":["Bash"],"inLanguage":"tr","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/#respond"]}],"copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/fatihsoysal.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/","url":"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/","name":"Bash: How to Round Numbers to 2 Decimal Places (\u00c7eviri)","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/#website"},"datePublished":"2025-07-29T06:45:56+00:00","dateModified":"2025-09-01T15:33:22+00:00","description":"Hi\u00e7bir etiketi bulunamad\u0131.","breadcrumb":{"@id":"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihsoysal.com\/blog\/bash-how-to-round-numbers-to-2-decimal-places-ceviri\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/fatihsoysal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Bash: How to Round Numbers to 2 Decimal Places (\u00c7eviri)"}]},{"@type":"WebSite","@id":"https:\/\/fatihsoysal.com\/blog\/#website","url":"https:\/\/fatihsoysal.com\/blog\/","name":"Fatihsoysal.com","description":"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim","publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"tr"},{"@type":["Person","Organization"],"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1","name":"Fatih Soysal","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","contentUrl":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","width":512,"height":512,"caption":"Fatih Soysal"},"logo":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/"},"description":"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.","url":"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/"}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/26693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/comments?post=26693"}],"version-history":[{"count":1,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/26693\/revisions"}],"predecessor-version":[{"id":28654,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/26693\/revisions\/28654"}],"wp:attachment":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/media?parent=26693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/categories?post=26693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/tags?post=26693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}