Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: How does Oracle store NUMBER datatypes internally?
Without checking the manual (corrections welcome):
Byte 1: number of bytes for storage (# of digits divided by 2) Byte 2: where the decimal goes (not sure of exact format) Byte 3-x: pairs of digits
1576.89
gets stored something akin to:
decimal: 4 2(4?) 15 76 89 HEX: 04 02 0f 4c 59
The key point is the pairing of digits into values in the range of 0 to 99 that waste minimal space in the byte while being quick to retrieve in human readable format. The big drawback here is that almost every mathematical function is more cumbersome in this notation, and therefore slower.
Brian Norrell
Manager, MPI Development
QuadraMed
511 E John Carpenter Frwy, Su 500
Irving, TX 75062
(972) 831-6600
-----Original Message-----
Sent: Wednesday, July 11, 2001 11:56 AM
To: Multiple recipients of list ORACLE-L
Can someone point me a document or something that explains how does Oracle store NUMBER datatypes internally?
TIA
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: =?iso-8859-1?q?Pablo=20ksksksk?= INET: p_rodri99_at_yahoo.es Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-LReceived on Wed Jul 11 2001 - 12:56:53 CDT
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Norrell, Brian INET: BNorrell_at_QuadraMed.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
![]() |
![]() |