Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Binary-coded decimal
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Signed variations=== Signed decimal values may be represented in several ways. The [[COBOL]] programming language, for example, supports five zoned decimal formats, with each one encoding the numeric sign in a different way: {| class="wikitable" style="width:95%" |- ! style="background:#D0E0FF; width:25%"| Type ! style="background:#D0E0FF; width:55%"| Description ! style="background:#D0E0FF; width:20%"| Example |- | [[Signed number representations|Unsigned]] | No sign [[nibble]] | <code>F1 F2 <u>F</u>3</code> |- | Signed trailing ''(canonical format)'' | Sign nibble in the last (least significant) byte | <code>F1 F2 <u>C</u>3</code> |- | Signed leading ''(overpunch)'' | Sign nibble in the first (most significant) byte | <code><u>C</u>1 F2 F3</code> |- | Signed trailing separate | Separate sign character byte (<code>'+'</code> or <code>'β'</code>) following the digit bytes | <code>F1 F2 F3 <u>2B</u></code> |- | Signed leading separate | Separate sign character byte (<code>'+'</code> or <code>'β'</code>) preceding the digit bytes | <code><u>2B</u> F1 F2 F3</code> |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)