Is there a Unicode character for plus over minus? (+/-)

16,774

Solution 1

This is the only one I have seen in unicode (plus over minus):

±

HTML/XML Character reference:

±

HTML Named Entity:

±

This symbol is used to indicate the precision of an approximation.

Solution 2

You can approximate it to some extent with a superscript plus (U+207A), a division slash (U+2215) and a subscript minus (U+208B):

⁺∕₋

However, it requires font support to get right. Especially the super- and subscript +/− are not available in most fonts, so it might just render horribly.

For reference, that's how it looks for me (better than five years ago, but still somewhat broken):

enter image description here

However, using Cambria Math in Word 2010 it looks like this:

enter image description here

Which probably is exactly how it should look like (follows the same typesetting rules as fractions).

Solution 3

You mean like ± (U+00B1 / "\x00b1")?

Edit: speaking specifically to a design which uses a solidus, the best I could find was ⁺⁄₋ which is U+207a (superscript plus sign) U+2044 (fraction slash) U+208b (subscript minus). The fraction slash has negative kerning in some fonts, which causes the appearance of composition. See this JSFiddle for an example of how this works with a larger font size.

<div style="font-size:20em;">&#x207a;&#x2044;&#x208b;</div>

enter image description here

Solution 4

+

<sup>+</sup>&#8260;<sub>&#8722;</sub>

Share:
16,774

Related videos on Youtube

andrewtc
Author by

andrewtc

Video game programmer. My primary experience is with C++, but I also have experience with a number of other languages, including C#, Java, ActionScript 3, JavaScript, and PHP.

Updated on June 04, 2022

Comments

  • andrewtc
    andrewtc about 2 years

    Occasionally I've seen the symbol "plus or minus" written in fractional form, like this:

    plus or minus

    Is there a Unicode character for this?

    Note: I already know about the standard "plus-minus sign" symbol, but it won't work in this context. I'm specifically looking for a version with the fraction bar.

    • Matt Ball
      Matt Ball almost 11 years
    • Matt Ball
      Matt Ball almost 11 years
      This question appears to be off-topic because it is about finding a Unicode character.
    • Rich
      Rich almost 11 years
      Matt: That's assuming that there is a single character for that and that there are no other means of getting that glyph. That assumption may not be valid and I doubt a search engine might turn up my solution.
    • Amit Patil
      Amit Patil almost 11 years
      This seems to me like an alternative glyph for ±, in which case the question would be “is there a font that renders ± with a slash”?
  • Joachim Breitner
    Joachim Breitner over 10 years
    Looks better for me than for you ;-)
  • Yu Jianrong
    Yu Jianrong about 10 years
    The best combination I had seen
  • travis
    travis over 8 years
  • Murray Sagal
    Murray Sagal about 6 years
    Works great. Swift: let plusMinus = "\u{207A}\u{2215}\u{208B}" renders nice with the default font in aUILabel.