I'm trying to think up some way that a single character could produce a
non-integer floating-point value and I don't think there is any. Unless we
handled ½ and such ;-)

On Fri, Jan 23, 2015 at 11:15 AM, Steven G. Johnson <stevenj....@gmail.com>
wrote:

>
>
> On Friday, January 23, 2015 at 10:39:42 AM UTC-5, J Luis wrote:
>>
>> Than the confusion is even bigger (not intentional for sure)
>>
>> julia> parsefloat(a[2])
>> ERROR: `parsefloat` has no method matching parsefloat(::Char)
>>
>> julia> parseint(a[2])
>> 2
>>
>
> We could certainly add a parsefloat(c::Char) = float(parseint(c)) method.
>   I'm not sure I see the motivation, though; why not just use parseint?
>

Reply via email to