EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: medm: leading zeros
From: [email protected] (Ned Arnold)
To: [email protected]
Cc: [email protected]
Date: Mon, 22 Jun 1998 10:11:52 -0500
> Is there a way to specify (in the record's PRECision field) to direct a medm
> text monitor to fill the displayed VALue with leading zeros?  I want the
> display to show '02',  not '2'.   In a printf statement the syntax would be
> %02d.
> 
> -ps
> 
> 

No, not directly. If its REAL important you could write a simple device
support routine for a stringin record that puts it into whatever format
you want. The stringin record could fetch the value you want using the 
.INP field.



	Ned
	

Replies:
Re: medm: leading zeros Chip WATSON

Navigate by Date:
Prev: medm: leading zeros Paul Sichta
Next: Re: medm: leading zeros Tim Mooney
Index: 1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: medm: leading zeros Paul Sichta
Next: Re: medm: leading zeros Chip WATSON
Index: 1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·