Skip to content

Group Negative Digits - #445

Open
atummons wants to merge 2 commits into
missionpinball:devfrom
atummons:negative_number_grouping
Open

Group Negative Digits#445
atummons wants to merge 2 commits into
missionpinball:devfrom
atummons:negative_number_grouping

Conversation

@atummons

Copy link
Copy Markdown

This changes from isDigit (only finds positive numbers) to casting to int to find all numbers. If an int is found, it converts it back to a string and strips the negative sign from it. It will then group as normal and replace the number portion with the grouped digits and leave the negative sign intact.

atummons added 2 commits June 15, 2023 11:46
This changes from isDigit (only finds positive numbers) to casting to int to find all numbers. If an int is found, it converts it back to a string and strips the negative sign from it.  It will then group as normal and replace the number portion with the grouped digits and leave the negative sign intact.
@atummons

Copy link
Copy Markdown
Author

Not sure what the issue is here that failed, as it's a .C file that I did not touch. Also, I cannot run any of the tests on my local (Windows problems?) I didn't see where any of the tests were actually run in this build either. If the tests ran, great, if not, I would appreciate someone running them to make sure they all pass before merging. Thanks!

Tied to this issue reporting on the MPF side: missionpinball/mpf#1683

@toomanybrians

Copy link
Copy Markdown
Member

The Windows cloud builds are broken currently. (Well, they were last time I checked a few months ago.) I was hoping a windows guru would figure out why, but no luck. (I'm a Mac user with a bit of Linux, I don't use Windows anymore.)

I do have a Windows VM and I was able to get the builds to run fine locally, but they just randomly stopped working on GitHub. I'm going to look at the MPF installers again next week (specifically the MC installer, as MPF is fine), so I'll see if I can get them fixed and then merge this then.

@atummons

Copy link
Copy Markdown
Author

Thanks, Brian. And no rush on anything, saw someone reported the issue and was something I could fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants