We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Loading...
  • Practice
  • Compete
  • Jobs
  • Leaderboard
  • Hiring developers?
  1. Practice
  2. Linux Shell
  3. Bash
  4. Arithmetic Operations
  5. Discussions

Arithmetic Operations

  • Problem
  • Submissions
  • Leaderboard
  • Discussions
  • Editorial
  • Tutorial

    You are viewing a single comment's thread. Return to all comments →

  • ken_cristian 3 years ago+ 1 comment

    There is a $ before the parenthesis that is being interpreted in the comment

    printf "%.3f" $(echo $exp | bc -l)
    
    7|
    ParentPermalink
    • sjames2 2 years ago+ 0 comments

      Why do you need the "$" before the echo part?

      7|
      ParentPermalink
  • Contest Calendar
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy
  • Request a Feature