diff options
author | bremner <bremner@09fa754a-f411-0410-976a-da6bfa213b30> | 2006-06-01 19:27:52 +0000 |
---|---|---|
committer | bremner <bremner@09fa754a-f411-0410-976a-da6bfa213b30> | 2006-06-01 19:27:52 +0000 |
commit | edaad771cb395a3a0b68cf3bbda2de1e259194c7 (patch) | |
tree | d6bfc9b298ee3363337f7287d3f04babb84f3cd5 /float2rat.h | |
parent | 7a583e3a287eb468e82e6509b467b6701e50dade (diff) |
renamed .ds files for david avis
git-svn-id: file:///export/data/bremner/svn/trunk/inetools@5360 09fa754a-f411-0410-976a-da6bfa213b30
Diffstat (limited to 'float2rat.h')
-rw-r--r-- | float2rat.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/float2rat.h b/float2rat.h new file mode 100644 index 0000000..c646dbe --- /dev/null +++ b/float2rat.h @@ -0,0 +1,11 @@ +#define DOCSTRING "\n\ +$Id: float2rat.doc 2337 2006-04-03 20:42:09Z bremner $\n\ +\n\ +Converts floating point coefficent $f$ to rational by the \n\ +simple expedient of outputing 10^k*f/10^k for appropriate \n\ +$k$. Does no reduction of numbers. In particular this may cause overflow in \n\ +old versions of lrs input (and I'm not about cdd).\n\ +" + +int usage(){ fprintf(stderr,"\n%s\n",rcsid);fprintf(stderr,DOCSTRING); exit(1); } +#define CHECK_HELP if (argc > 1 && argv[1][0]=='-' && argv[1][1]=='h') usage(); |