CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Notes for OpenFOAM!

Register Blogs Members List Search Today's Posts Mark Forums Read

In this blog, quick reference notes about OpenFOAM are posted in a form of a summary to address a specific topic per post, which I think could be helpful as a reminder for my Alzheimer condition
Old

Floating Point Math in Bash

Posted March 6, 2013 at 14:35 by Hisham (Notes for OpenFOAM!)

This post is copied from: http://www.linuxjournal.com/content/...oint-math-bash
Floating Point Math in Bash, By Mitch Frazier

To use floating point arithmetic in Bash one can source this script (i.e. source floatSupport.sh). The floatSupport.sh is:

Code:
#!/bin/bash 
# 
# Floating point number functions. 

##################################################################### 
# Default scale used by float functions.
...
Hisham's Avatar
Senior Member
Posted in Uncategorized
Views 561 Comments 0 Hisham is offline Edit Tags

All times are GMT -4. The time now is 18:08.