CHAR: 3 yields 51 on stack

USE: formatting
3 "Value: %d" printf
There may be more flexible formatting functions but at least I know that
one!  Look for the article "formatted printing"


%%Single %%P.DsString formatstring%P.DSString format
uppercasestring%cCharacter formatchar%CCharacter format
uppercasechar%+PdInteger formatfixnum%+P.DeScientific notationfixnum,
float%+P.DEScientific notationfixnum, float%+P.DfFixed formatfixnum,
float%+PxHexadecimalhex%+PXHexadecimal uppercasehex%[%?, %]Sequence
formatsequence%[%?: %? %]Assocs formatassocs


On Sat, Feb 13, 2010 at 10:46 AM, Hugh Aguilar <[email protected]>wrote:

> Does Factor have anything comparable to Forth's pictured numbers (the <#
> ... #> functions)? What I am doing right now is using NUMBER>STRING and then
> modifying the string, but this makes for pretty ugly code.
>
> Also, does Factor have anything comparable to Forth's [CHAR] function? Your
> <STRING> function expects a char parameter, but I don't want to use numeric
> values because this is hard to read. For example, in Forth I would use
> [CHAR] 0 rather than the raw 48 value.
>
>
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>


-- 
Jim
"I'm for extending the working Medicare program for our seniors all the way
back to contraception, so Americans can concentrate on living their lives
without fear of changing a job, going bankrupt from deductibles or fighting
HMO bureaucracy."
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to