![]() |
|
|
google unix.com
|
|||||||
| Fóruns | Registar | Fórum Regimento | Ligações | Álbuns | FAQ | Lista deputados | Calendário | Pesquisa | Today's Posts | Mark Forums Read |
| Programação Shell Script e Post perguntas sobre ksh, CSH, SH, BASH, Perl, PHP, SED, Awk e outros scripts shell e shell scripts línguas aqui. |
Mais UNIX e Linux Fórum Tópicos Você pode achar Helpfull
|
||||
| Fio | Thread Starter | Fórum | Respostas | Última postagem |
| mail função problema | jwholey | Programação Shell Script e | 4 | 05-01-2008 12:21 |
| problema, com a condição se em função | gurukottur | Programação Shell Script e | 4 | 04-24-2008 03:57 |
| PERL função problema | avadhani | Programação Shell Script e | 2 | 06-15-2005 05:18 |
| Problema com a função strlen em ksh | Steiner | Programação Shell Script e | 3 | 07-24-2003 09:39 |
| Rexec () function problema | lcmoreno | Alto Nível de programação | 7 | 01-08-2002 10:19 |
|
|
Linkback | Thread Tools | Pesquisar este Thread | Rate Thread | Display Modes |
|
||||
|
awk problema em função Int ()
awk-vwgt \u003d $ vWeight-vfac \u003d $ vFactor '
BEGIN ( printf ( "wgt:" wgt "\ n"); printf ( "fator" fac "\ n"); total \u003d sprintf ( "% .0 f", wgt * FAC); total2 \u003d sprintf ( "% .0 f", int (* wgt fac)); printf ( "total:" total "\ n"); printf ( "total2:" total2 "\ n"); ) ' se vWeight \u003d 326,4 vFactor \u003d 100 o resultado seria: total: 32.640 total2: 32639 Poderia alguém sabe como é 32639 calucated? obrigado! |
| Marcadores |
| Thread Tools | Pesquisar este Thread |
| Display Modes | Esta taxa Thread |
|
|