Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #8355

DEC64=="Bee's knees"?

Newsgroups comp.programming
Date 2018-02-12 19:12 -0800
Message-ID <10fe9ae4-ddae-4aef-8fbb-fd7ef8618070@googlegroups.com> (permalink)
Subject DEC64=="Bee's knees"?
From luser droog <mijoryx@yahoo.com>

Show all headers | View raw


I was watching some youtube videos about language design
and what the languages of the future should be like. And
one video strongly suggested that 'int' be dropped as a
basic type in new languages in favor of DEC64.

DEC64 is a sort of hybrid floating-point/scaled-integer
type. (https://en.wikipedia.org/wiki/DEC64) It has a 56 bit
mantissa, and an 8 bit decimal exponent. 

Since the exponent is decimal, the type can easily represent
'normal' decimal numbers like .2 without the bizarre effects
that binary fp's repeating expansion produces.

What problems might be encountered by (users of) a new 
language offering dec64 as its basic numeric type and 
eschewing 'int'?

Back to comp.programming | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

DEC64=="Bee's knees"? luser droog <mijoryx@yahoo.com> - 2018-02-12 19:12 -0800
  Re: DEC64=="Bee's knees"? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-02-13 05:13 +0000

csiph-web