Cleaning up and 2.0 - Addition and Concatenation (Program Bug and Problems)

by Jim ⌂ @, Russell, KY, Monday, August 08, 2016, 14:19 (264 days ago) @ francisco

After much thought and input from the community, you make a good point.

+ will
if both are integers, it will add as integer
if both are numbers and either are floating point, it will add as floats
if either are strings, it will concatenate

the new ; operator will always concatenate

This should ensure backward compatibility and keep BASIC-256 moving forward.

Jim


Complete thread:

 RSS Feed of thread

powered by my little forum