sjbarag / brs

An interpreter for the BrightScript language that runs on non-Roku platforms.
MIT License
114 stars 43 forks source link

add double support to Str() (#581) #628

Closed strattonbrazil closed 3 years ago

strattonbrazil commented 3 years ago

This addresses #581, where only floats are accepted by the Str() function.

Change The implementation for floats and doubles is identical where they need to be converted to a string, and if positive add a space beforehand. The simplest fix was to change the input type to double, so both floats and doubles would be supported.

Fixes #581