On Sun, 05 Oct 2014 01:46:03 +1000, Steven D'Aprano
wrote:
>Seymore4Head wrote:
>
>> A little more: decimal_portion
>>
>> Write a function that takes two number parameters and returns a float
>> that is the decimal portion of the result of dividing the fir
Seymore4Head wrote:
> A little more: decimal_portion
>
> Write a function that takes two number parameters and returns a float
> that is the decimal portion of the result of dividing the first
> parameter by the second. (For example, if the parameters are 5 and 2,
> the result
On Sun, 5 Oct 2014 01:24:40 +1000, Chris Angelico
wrote:
>On Sun, Oct 5, 2014 at 1:16 AM, Seymore4Head
> wrote:
>> I did. I included a screenshot of me doing just that.
>> The formula seems to work in the shell, but does not work as a
>> function, or I am missing something subtle again.
>
>Ah, I
On Sun, Oct 5, 2014 at 1:16 AM, Seymore4Head
wrote:
> I did. I included a screenshot of me doing just that.
> The formula seems to work in the shell, but does not work as a
> function, or I am missing something subtle again.
Ah, I don't generally click screenshots.
Have the function print out e
On Sun, 5 Oct 2014 01:07:39 +1000, Chris Angelico
wrote:
>On Sun, Oct 5, 2014 at 12:58 AM, Seymore4Head
> wrote:
>> A little more: decimal_portion
>>
>> Write a function that takes two number parameters and returns a float
>> that is the decimal portion of th
On Sun, Oct 5, 2014 at 12:58 AM, Seymore4Head
wrote:
> A little more: decimal_portion
>
> Write a function that takes two number parameters and returns a float
> that is the decimal portion of the result of dividing the first
> parameter by the second. (For example, if the paramet
A little more: decimal_portion
Write a function that takes two number parameters and returns a float
that is the decimal portion of the result of dividing the first
parameter by the second. (For example, if the parameters are 5 and 2,
the result of 5/2 is 2.5, so the return value would be 0.5