HomePhorge

(PUP-2663) Allow string to contain leading sign in numeric conversion
cb89fce633f4Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-2663) Allow string to contain leading sign in numeric conversion

This makes it possible to use an unary +/- in a string. The sign
of the converted value abides by the unary string sign. White space is
allowed around the sign, and at the end of the string.

'+ 2' + '- 2' == 0

This is of value when dealing with original data in string form
that needs to be converted. Without this it is especially difficult to
pass a negative value around in string form.

Details

Provenance
Henrik Lindberg <henrik.lindberg@cloudsmith.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU1e5a0b523436: Merge branch 'pull-2575'
Branches
Unknown
Tags
Unknown

Event Timeline

Henrik Lindberg <henrik.lindberg@cloudsmith.com> committed rPUcb89fce633f4: (PUP-2663) Allow string to contain leading sign in numeric conversion (authored by Henrik Lindberg <henrik.lindberg@cloudsmith.com>).May 27 2014, 11:37 PM