isnum -> isdec / ishex - 03/09/04 12:41 PM
an addition for isnum to incorporate decimal and hex...
currently I check for hex using:
which is a very simple and fast (non-regexp) solution...
but since hex is a highly used system it might be nice to have a build in way like isnum
(note: this isn't some high priority thing... just a nice idea which is easely scripted)
currently I check for hex using:
Code:
alias ishex { if (!$len($remove($1,1,2,3,4,5,6,7,8,9,0,a,b,c,d,e,f))) return $true else return $false }
which is a very simple and fast (non-regexp) solution...
but since hex is a highly used system it might be nice to have a build in way like isnum
(note: this isn't some high priority thing... just a nice idea which is easely scripted)