Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2002
    Location
    ATL
    Posts
    170

    Unanswered: Syntax error for a division

    What is wrong with the following statement.

    totalMB = (($totalU / 1024 ))

    I keep getting syntax error

  2. #2
    Join Date
    Jan 2007
    Location
    Jena, Germany
    Posts
    2,721
    Remove the spaces and inject a '$' in front of the two '((':
    Code:
    totalU=4096; totalMB=$(($totalU / 1024 )); echo $totalMB
    Knut Stolze
    IBM DB2 Analytics Accelerator
    IBM Germany Research & Development

  3. #3
    Join Date
    Sep 2006
    Posts
    97
    Stolze thank you very much for your valuable inputs

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •