#isdigit()

DESCRIPTION
    returns TRUE if a character, or first character in a string, is a digit (number)
SYNOPSIS
    #isdigit(s)
ARGUMENTS
    s - a quoted string, or string expression
EXAMPLES
# pikt +C 'output $text(#isdigit("a"))'
0

# pikt +C 'output $text(#isdigit("A"))'
0

# pikt +C 'output $text(#isdigit("9"))'
1

# pikt +C 'output $text(#isdigit("!"))'
0

# pikt +C 'output $text(#isdigit(" "))'
0

# pikt +C 'output $text(#isdigit($char(3)))'
0

# pikt +C 'output $text(#isdigit("is this a digit?"))'
0
SEE ALSO
    #isalnum()
    #isalpha()
    #iscntrl()
    #isgraph()
    #islower()
    #isprint()
    #ispunct()
    #isspace()
    #isupper()

    Numerical Functions
    String Functions
 
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2010-04-15.   This site is PIKT® powered.
PIKT® is a registered trademark of the University of Chicago.   Copyright © 1998-2010 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
View sample
non-search links
script macro