SHow 0 before decimals

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

SHow 0 before decimals

ANDRES ALBERTO BURGA LEON

Hello:

Maybe thios is a very basic question but I haven't found a way to do it (or maybe it's not posible to do it)

If a have a numeric variable, and I type 0.76 it is show as .76. Is there any way to show it as 0.76?

Thank you

Andrés

Mg. Andrés Burga León
Coordinador de Análisis e Informática
Unidad de Medición de la Calidad Educativa
Ministerio de Educación del Perú
Calle El Comercio s/n (espalda del Museo de la Nación)
Lima 41
Perú
Teléfono 615-5840
Reply | Threaded
Open this post in threaded view
|

Re: SHow 0 before decimals

Bruce Weaver
Administrator
Use an N-format rather than an F-format.  E.g.,

format x y z (n5.2).



ANDRES ALBERTO BURGA LEON wrote
Hello:

Maybe thios is a very basic question but I haven't found a way to do it
(or maybe it's not posible to do it)

If a have a numeric variable, and I type 0.76 it is show as .76. Is there
any way to show it as 0.76?

Thank you

Andrés

Mg. Andrés Burga León
Coordinador de Análisis e Informática
Unidad de Medición de la Calidad Educativa
Ministerio de Educación del Perú
Calle El Comercio s/n (espalda del Museo de la Nación)
Lima 41
Perú
Teléfono 615-5840
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).
Reply | Threaded
Open this post in threaded view
|

Re: SHow 0 before decimals

Bruce Weaver
Administrator
Andres reported (off-list) that the n5.2 format is showing 0.76 as 0076, and I discovered the same thing when I tried it.  In that case, you may have to resort to a custom currency, as shown in the 2nd post of this thread from comp.soft-sys.stat.spss (mind the line-wrap):

  http://groups.google.com/group/comp.soft-sys.stat.spss/browse_frm/thread/983515f7f63d657/4ba4b1319eff6c1e?lnk=gst&q=format+leading+0#4ba4b1319eff6c1e



Bruce Weaver wrote
Use an N-format rather than an F-format.  E.g.,

format x y z (n5.2).



ANDRES ALBERTO BURGA LEON wrote
Hello:

Maybe thios is a very basic question but I haven't found a way to do it
(or maybe it's not posible to do it)

If a have a numeric variable, and I type 0.76 it is show as .76. Is there
any way to show it as 0.76?

Thank you

Andrés

Mg. Andrés Burga León
Coordinador de Análisis e Informática
Unidad de Medición de la Calidad Educativa
Ministerio de Educación del Perú
Calle El Comercio s/n (espalda del Museo de la Nación)
Lima 41
Perú
Teléfono 615-5840
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).