Yes, or

{.@:(10&(#.^:_1))

Henry Rich

On 12/19/2010 7: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

Reply via email to