Back
Asciify Logo
Asciify
«SHY

ASCII 172

Not signOne quarter

ASCII 172 is ¬ on Windows and ¼ in old DOS.

¬ (Not Sign) is byte 172 in Windows-1252, Unicode U+00AC. Logic and maths use it for negation, and UK keyboards give it a key of its own, top left beside 1. On the web it causes a classic bug. &not is one of the old HTML entities that browsers recognize even without a semicolon, so a URL like ?id=5&notify=1 written into a page as visible text, with the & unescaped, displays as ?id=5¬ify=1. Inside an href attribute browsers leave it alone, which is why the link still works while the text shown on the page is wrong. Escape & as & in text. Old DOS had ¬ too, at 170. In UTF-8 it's C2 AC, and the HTML entity is ¬.

¼ (One Quarter) is byte 172 in code page 437, the original IBM PC character set, and maps to Unicode U+00BC. Windows-1252 has the not sign ¬ at 172, so DOS text read as Windows-1252 turns a ¼ inch drill bit into a ¬ inch one. Code page 850 kept ¼ at 172 too, right after ½ at 171.

Math SymbolNumber

Technical Details

Technical Details

Code Example

</>
#include <stdio.h>
int main(void) {
/* On Windows (code page 1252) byte 172 is ¬.
Modern terminals expect UTF-8, so print the code point, not the byte. */
printf("\u00AC\n"); /* UTF-8: C2 AC */
unsigned char b = 172; /* the raw Windows-1252 byte */
printf("%d 0x%02X\n", b, b); /* 172 0xAC */
return 0;
}

Code Example

</>
#include <stdio.h>
int main(void) {
/* Byte 172 is ¼ only on a console using code page 437
(chcp 437 on Windows, or DOSBox). On a UTF-8 terminal the
lone byte 0xAC is invalid and prints as garbage, often �. */
putchar(172);
/* char is signed on x86, so a plain char holding 0xAC is -84.
Use unsigned char when you compare or index by byte value. */
char c = (char)172;
unsigned char u = 172;
printf("\n%d %d\n", c, u); /* -84 172 */
/* Portable: print the Unicode character as UTF-8 instead. */
printf("\u00BC\n"); /* C2 BC */
return 0;
}

How to Type It

Windows
Hold Alt and type 0172 on the numeric keypad, with Num Lock on. The leading zero picks the Windows code page. Alt+170, without the zero, types it too. No numeric keypad? In Word, type 00AC and press Alt+X.
Mac
Press Option+L.
Linux
In GNOME, or any desktop running IBus, press Ctrl+Shift+U, type ac, then Space. With a Compose key set up, press Compose, comma, minus.
Phone
Tap the character at the top of this page to copy it.

How to Type It

Windows
Hold Alt and type 172 on the numeric keypad, with no leading zero. Windows reads it as a DOS code and inserts ¼.

¼ is also ASCII 188 on Windows, which has the full guide.

Frequently Asked Questions

  • Yes in logic, where they're two notations for the same operator: ¬ is the standard modern one, and ~ turns up in older texts like Principia Mathematica. In code they differ. C-style languages use ! for logical not and ~ for flipping every bit, so ~1 gives -2 where !1 gives 0. In LaTeX, ¬ is `\neg` or `\lnot`.

  • Windows is using the US layout for your UK keyboard. On US settings that key gives ` and ~, Shift+2 gives @ instead of ", and Shift+3 gives # instead of £. Add English (United Kingdom) as a keyboard layout in Windows' language settings, then switch to it with Win+Space.

  • Look at what comes right before it. € is a euro sign and ì is ì, both UTF-8 read as Windows-1252, where AC, the last byte of each, is ¬.

  • Both. Alt+170 looks the number up in the DOS code page, where ¬ sits at 170, and Alt+0172 uses Windows-1252, where it sits at 172. The one that fails is Alt+172 with no zero, which lands on ¼ in the DOS table. So the number this page is named after only gives ¬ with the zero in front.

Frequently Asked Questions

  • Both. Alt+170 looks the number up in the DOS code page, where ¬ sits at 170, and Alt+0172 uses Windows-1252, where it sits at 172. The one that fails is Alt+172 with no zero, which lands on ¼ in the DOS table. So the number this page is named after only gives ¬ with the zero in front.

@workani&@alexluthor
Privacy & legal

Privacy

No accounts, no ads, no tracking cookies, and no cross-site tracking. The only analytics we keep are faceless — anonymous, aggregated counts of pages and searches, never tied to you. We store no IP addresses, set no tracking cookies, and build no profiles. Cloudflare hosts the site and handles requests for delivery and security.

Full privacy policy·Extension privacy·legal@asciify.dev

Attributions & licenses

Twemoji
© Twitter, Inc and other contributors · CC-BY 4.0
Noto Color Emoji
© Google · Apache 2.0
Fluent UI Emoji
© Microsoft · MIT
OpenMoji
© HfG Schwäbisch Gmünd · CC-BY-SA 4.0
Toss Face
© Viva Republica (Toss) · SIL OFL 1.1
JoyPixels
© JoyPixels Inc. · Free Limited Use License
SerenityOS Emoji
© The SerenityOS Developers · BSD-2-Clause
EmojiTwo
© EmojiTwo contributors · CC-BY 4.0
Apple Color Emoji
© Apple, Inc.
Facebook Emoji
© Meta Platforms, Inc.

Apple and Facebook emoji styles are proprietary and shown here solely for reference and comparison — a common-sense application of nominative-use / fair-use principles. asciify is not affiliated with, endorsed by, or sponsored by Apple, Inc., Meta Platforms, Inc., or any other rights holder listed above. If a rights holder requests removal of their emoji style from this site, it will be removed.

All other vendor emoji are reproduced for reference and comparison under their respective open licenses listed above.

Character names and code points from the Unicode® Standard. Unicode® and the Unicode Logo are registered trademarks of Unicode, Inc.

Privacy
© asciify.dev 2025-2026