nedoPC.org

Community of electronics hobbyists established in 2002

...
Atom Feed | View unanswered posts | View active topics It is currently 19 Dec 2018 01:02



Reply to topic  [ 3 posts ] 
[Ternary] Ternary floating point 
Author Message
Maniac

Joined: 17 Sep 2012 14:36
Posts: 277
Location: 81.170.128.52
Reply with quote
Is there any established conventions for ternary floating point numbers?

I've come up with the following specifications for a half-precision-equivalent (with slightly more precision than binary half-precision). Twelve trits long, with the following specifications:

MST...LST | MST ... LST
E E E E S S S S S S S S

Feedback, ideas, ...?

Oh yeah, and I'll be using base 3 for the exponent.


03 Mar 2008 10:06
Profile
Admin
User avatar

Joined: 09 Jan 2003 00:22
Posts: 17240
Location: Colorado
Reply with quote
At January 16th I write this in topic about TRINITY-2004:

Quote:
Idea about representation of floating point numbers: Lets take "truble" and divide it to 2 parts: 6-trit exponent and 18-trit fraction. By accuracy it is better than 32-bit "float", worse than 64-bit "double" and similar to 36-bit floating number in IBM System/360 from 1964 that had 9-bit sign and exponent and 27-bit fraction. Because of nature of balanced ternary numeric system we don't need "biasing" exponent. Also we don't need separate sign bit - we simply combine it with "hidden" most significant bit of fraction instead and it will be part of full 18-trit fraction. So range of exponent is from -364 to +364 (3^6/2) and fraction from -193710244 to +193710244 (3^18/2 that is max possible integer represented by this floating point format). To simplify formula for calculation number from representation we may simply forget about "fractional" nature of fraction and say F*3^E


http://www.nedopc.org/forum/viewtopic.php?t=92&start=10


04 Mar 2008 18:17
Profile WWW
Admin
User avatar

Joined: 09 Jan 2003 00:22
Posts: 17240
Location: Colorado
Reply with quote
Post 
up

_________________
:eugeek: https://twitter.com/Shaos1973


10 Nov 2012 07:58
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.