---
title: "Discussion on \"Bash Script That Prints A Number With Two Decimal Places\" | Hashnode"
description: "Discussion on \"Bash Script That Prints A Number With Two Decimal Places\". Another task that I had to tackle as part of the lessons on shell expansion in my ongoing ALX Software Engineering course was to write a bash script that prints a number with two decimal places.\nLet's take a practical example and solve it to explain ..."
url: "https://hashnode.com/posts/bash-script-that-prints-a-number-with-two-decimal-places/62981a905e904609b99dbe60"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Bash Script That Prints A Number With Two Decimal Places](https://blog.ehoneahobed.com/bash-script-that-prints-a-number-with-two-decimal-places?utm_source=hashnode&utm_medium=feed)

Another task that I had to tackle as part of the lessons on shell expansion in my ongoing ALX Software Engineering course was to write a bash script that prints a number with two decimal places. Let's take a practical example and solve it to explain ...

Jun 2, 2022 · 4 min read · blog.ehoneahobed.com  
Read the article

-   [#bash](https://hashnode.com/tag/bash)
-   [#shell](https://hashnode.com/tag/shell)
-   [#linux](https://hashnode.com/tag/linux)
-   [#linux-basics](https://hashnode.com/tag/linux-basics)
-   [#linux-for-beginners](https://hashnode.com/tag/linux-for-beginners)

## Written by

[Dr. Ehoneah Obed](https://hashnode.com/@ehoneahobed)

@ehoneahobed

  
[View profile](https://hashnode.com/@ehoneahobed)

Software and AI engineer, health informatician, and registered pharmacist. I write about what I build and what I learn.

Heya! 👋 I love helping people, and one of the best ways I do this is by sharing what I learn and build. I started as a pharmacist at a tertiary hospital in Northern Ghana, where I saw how much technology could improve healthcare. That sparked my interest in digital health. I taught myself to code, then joined the ALX Software Engineering program, which became a turning point. I went on to complete a Master of Health Informatics at the University of Toronto. Today I am a software and AI engineer and a health informatician, and I practise remotely as a Digital Health Pharmacist. I combine clinical experience with technical skills to build tools that solve real problems in health and beyond, and I write here about what I build and what I learn.

## Responses 4

Markdown supported · ⌘↵ to post

[Onyinyechi Onyemeachi](https://hashnode.com/@Candystarr1)

[Jul 11, 2023](https://hashnode.com/posts/bash-script-that-prints-a-number-with-two-decimal-places/62981a905e904609b99dbe60/comment/64ada769241a6654f37fd9a2)

if only my medical school courses were explained this way maybe i wouldnt have changed career paths Thank you Dr for explaining

[Ahmed Abouzid](https://hashnode.com/@Abouzid)

[Jun 15, 2023](https://hashnode.com/posts/bash-script-that-prints-a-number-with-two-decimal-places/62981a905e904609b99dbe60/comment/648ac307f41110c6e4900307)

Thank you very much for this great explanation.

[Erick Awino](https://hashnode.com/@Awwy)

[Mar 14, 2023](https://hashnode.com/posts/bash-script-that-prints-a-number-with-two-decimal-places/62981a905e904609b99dbe60/comment/6410963223ae346d7603f451)

Clear, concise, and shared in a manner to facilitate learning. Good job, Obed.

[Thabani Takwena](https://hashnode.com/@FormulaT)

[Sep 7, 2022](https://hashnode.com/posts/bash-script-that-prints-a-number-with-two-decimal-places/62981a905e904609b99dbe60/comment/6318426e2cef8b07c2f1ee5e)

I just wanted to say that i really appreciate you for your work. You aren't just giving off answers or solutions to these problems, you give a very intuitive description of what the problem is asking and actually build up from that while explaining how you got to the final solution. I also appreciate how you go ahead to describe each and every command you use, which really makes it easier for a beginner/learner like me understand firmly actually what is happening. I sometime find myself reading through some articles that barely explain the code written or rather use very **DIFFICULT** to understand technical terms which really put me off and effectively discourage me from even trying to learn the concept. I, again, really appreciate your method. I have looked through some of your other have been able to learn quite a lot from you. I am glad people like you exist.

[Thabani Takwena](https://hashnode.com/@FormulaT)

[Sep 7, 2022](https://hashnode.com/posts/bash-script-that-prints-a-number-with-two-decimal-places/62981a905e904609b99dbe60/comment/6318426e2cef8b07c2f1ee5e#reply-631843472cef8b07c2f1ee79)

By the way, I am also doing the ALX Software Engineering program😅. It really inspires me to see how much you already know and are able to share. I want to do the very same, i will work towards that. Thank you again Dr. Ehoneah Obed

[Dr. Ehoneah Obed](https://hashnode.com/@ehoneahobed)

[Oct 5, 2022](https://hashnode.com/posts/bash-script-that-prints-a-number-with-two-decimal-places/62981a905e904609b99dbe60/comment/6318426e2cef8b07c2f1ee5e#reply-633dbc0d12186eae2bef8d20)

Thank you for your kind ways and I am always happy to help. All the best
