Timeline for answer to Replace hyphen in front of scores/reputation by minus by Nick Craver
Current License: CC BY-SA 3.0
Post Revisions
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 28, 2022 at 7:36 | comment | added | user152859 | @MartinUeding yes, 10 years passed. | |
| Mar 4, 2016 at 4:14 | comment | added | durron597 | Well this has 254 votes on MSO as of this comment | |
| Jan 8, 2015 at 15:09 | comment | added | Martin Ueding | Did anything happen in the meantime? | |
| Apr 18, 2012 at 19:49 | vote | accept | Konrad Rudolph | ||
| Mar 10, 2012 at 0:45 | comment | added | Konrad Rudolph |
So what you’re saying is effectively that you only have to replace x.ToString() with x.TypographicallyCorrectToString(), given an extension method which performs return x < 0 ? '\u2212' + Math.Abs(x).ToString() : x.ToString()? – EDIT I just see that, no, it’s not. It would at least necessitate patching the library. Well, I’m off to file a bug report then. It’s what I do today.
|
|
| Mar 9, 2012 at 22:04 | comment | added | Adam Rackis | GAHH!!! Is this a dash, or a hyphen? Is Razor spitting out negative numbers with an em-dash, an en-dash, or a hyphen? The question, and coments all seem to use them interchangeably. | |
| Mar 9, 2012 at 21:44 | comment | added | Jon Ericson | Stepping off my high horse now... Ugh. That's truly annoying and I feel your pain. (Thanks for indulging my curiosity.) | |
| Mar 9, 2012 at 21:41 | comment | added | Nick Craver StaffMod | @JonEricson - this is default razor view behavior, feel free to file a bug with Microsoft :) | |
| Mar 9, 2012 at 21:41 | comment | added | Jon Ericson |
Now I'm really confused. Are you saying that some library's ToString() function outputs a dash as opposed to a minus sign for negative numbers? If so, that's a bug in the library, I'd say.
|
|
| Mar 9, 2012 at 21:27 | comment | added | Nick Craver StaffMod |
@Jon = thisIsANegativeIntergerVariable.ToString() is effectively what happens, the literal code is @re.RepChange, that's it.
|
|
| Mar 9, 2012 at 21:21 | comment | added | Jon Ericson | Not that I can see your code or anything, but... what does this have to do with code complexity? Could you be, perhaps, misunderstanding the question? From what I read, it's just using one character in place of another. | |
| Mar 9, 2012 at 21:15 | history | answered | Nick CraverStaffMod | CC BY-SA 3.0 |