Hello David; "Requires" is a bit strong, I like to power of Format/Do
<. ": x: x NB. first digit. x: to avoid floating point. Works as well with negatives as David's solution. On 12/19/2010 8:14 PM, David Steele wrote: > On 12/19/2010 2:42 PM, Randy MacDonald wrote: >> As far as the 'why convert to and from strings?' question goes, the >> 'first digit of a number' concept _requires_ seeing numbers as strings. >> > v=.<....@%&10^:(>&10)^:_ NB. first digit > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm