Культурный офтопик
 help / color / mirror / Atom feed
* [room] Щодо: Щодо: Двоичные числа
@ 2007-02-08 15:53 gns
  0 siblings, 0 replies; only message in thread
From: gns @ 2007-02-08 15:53 UTC (permalink / raw)
  To: gns
  Cc: культурный
	офтопик

а, нет. насчет последнего я что-то гоню. (10) 0,5 = (2) 0,1

2007/2/8, gns@altlinux.ru <gns@altlinux.ru>:
> кстати запятая по ходу сохраняет место - бишь можно отдельно  целую
> часть отконвертить, а потом дробну ю: 0,26712 представить и
> отконвертить как целое 26712 , а потом тупо дописать результат после
> запятой (потому что значение разрядов сохранится, ибо 1/2 это 64/128)
>
>
> 2007/2/8, gns@altlinux.ru <gns@altlinux.ru>:
> > как и десятичная дробь:
> >
> > 0,abcdefg... = a/2+b/4+c/8+d/16+e/32+f/64+g/128
> >
> > и алгоритм соответсвенно близко к алгоритму для целых
> >
> > 2007/2/8, Eugene Ostapets <eostapets@gmail.com>:
> > > Попросили знакомым написать рассчетку для ленивого дитяти... А там в
> > > задании необходимо среди прочего барахла превратить дробное число из
> > > десятичного в двоичное... С точностью не менее 8 знаков в дробной
> > > части... Забег по склерозу подсказал что в мои годы мы занимались
> > > только целыми числами... Кто-то помнит/знает правила для записи
> > > дробного числа в двоичном формате?
> > >
> > > --
> > > С уважением,
> > > Евгений Остапец
> > > uin: 23747217
> > > jid: eugene_ostapets@jabber.ru
> > > _______________________________________________
> > > smoke-room mailing list
> > > smoke-room@lists.altlinux.org
> > > https://lists.altlinux.org/mailman/listinfo/smoke-room
> >
>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-08 15:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-08 15:53 [room] Щодо: Щодо: Двоичные числа gns

Культурный офтопик

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/smoke-room/0 smoke-room/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 smoke-room smoke-room/ http://lore.altlinux.org/smoke-room \
		smoke-room@lists.altlinux.org smoke-room@lists.altlinux.ru smoke-room@lists.altlinux.com smoke-room@altlinux.ru smoke-room@altlinux.org smoke-room@altlinux.com
	public-inbox-index smoke-room

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.smoke-room


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git