Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > Re: Precision l...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 10 Topic 2157 of 2347
Post > Topic >>

Re: Precision lost when running gawk program from bat file

by Toby Darling <anothercoffee@[EMAIL PROTECTED] > Feb 11, 2008 at 10:01 AM

Hi

> I understand why you think so but I am not. The thing is that a have

No problem, just checking.

> I also tried the example found in the manual with the same result. I
> did notice one thing though. I cant find the LC_ALL variable in a
> console window it is only "valid" in cygwin? Also, one thing that
> makes no sence is that use a console window in both cases above. I
> dont use Cygwin or anything else. I would not suspect windows to
> behave different in a console or a batch file...well no precision is
> fine for me but it bothers me a bit when I dont know why it happens.

You'll need to 'set LC_ALL=en_DK' in the window or batch file, but
that doesn't seem to make any difference for me.

I'm no wiser as to what's going wrong either, I can only get the
correct [unrounded] output if I replace 4,321 with 4.321 (in Ed's
example).
 




 10 Posts in Topic:
Precision lost when running gawk program from bat file
di98mase <di98mase@[EM  2008-02-11 01:40:47 
Re: Precision lost when running gawk program from bat file
Ed Morton <morton@[EMA  2008-02-11 08:26:47 
Re: Precision lost when running gawk program from bat file
Ed Morton <morton@[EMA  2008-02-11 12:37:57 
Re: Precision lost when running gawk program from bat file
Toby Darling <anotherc  2008-02-11 07:00:11 
Re: Precision lost when running gawk program from bat file
di98mase <di98mase@[EM  2008-02-11 08:08:08 
Re: Precision lost when running gawk program from bat file
Galen <gltackett@[EMAI  2008-02-11 09:29:25 
Re: Precision lost when running gawk program from bat file
Toby Darling <anotherc  2008-02-11 10:01:45 
Re: Precision lost when running gawk program from bat file
di98mase <di98mase@[EM  2008-02-12 04:43:40 
Re: Precision lost when running gawk program from bat file
Ed Morton <morton@[EMA  2008-02-12 07:32:07 
Re: Precision lost when running gawk program from bat file
di98mase <di98mase@[EM  2008-02-12 06:28:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 8:28:01 CDT 2008.