Update calc.py
This commit is contained in:
parent
c57f5afc7d
commit
001bc9d8ae
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ The 'calc' library contains the 'add2' function that takes 2 values and adds
|
||||||
them together. If either value is a string (or both of them are) 'add2' ensures
|
them together. If either value is a string (or both of them are) 'add2' ensures
|
||||||
they are both strings, thereby resulting in a concatenated result.
|
they are both strings, thereby resulting in a concatenated result.
|
||||||
NOTE: If a value submitted to the 'add2' function is a float, it must be done so
|
NOTE: If a value submitted to the 'add2' function is a float, it must be done so
|
||||||
in quotes (i.e. as a string).
|
in quotes (i.e. as a string). update
|
||||||
'''
|
'''
|
||||||
|
|
||||||
# If 'value' is not an integer, convert it to a float and failing that, a string.
|
# If 'value' is not an integer, convert it to a float and failing that, a string.
|
||||||
|
|
Loading…
Reference in a new issue