Transpiled version (9357L) is out of date.
sS dropMinusFromZero(S s) { S g = regexpFirstGroup("^-([0-9\\.]+)", s); ret nempty(g) && !regexpFind("[1-9]", g) ? dropPrefix("-", s) : s; }
Began life as a copy of #1036220
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1036224 |
Snippet name: | dropMinusFromZero |
Eternal ID of this version: | #1036224/7 |
Text MD5: | a622c48d726217c81bf3828da9eaf52a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-10-25 22:56:14 |
Source code size: | 147 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 164 / 231 |
Version history: | 6 change(s) |
Referenced in: | [show references] |