473,387 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Dualsystem

Hallo,

im Oktal, Dezimal bzw. Hexadezimal-System kann ich Werte wie folge zuweisen:

zahl = 17; // Dezimal-System
zahl = 0x11; // Hexadezimal-System
zahl = 021; // Oktal-System

Wie geht das im Dualsystem ?
Gibt es da auch irgendein Kuerzel ?

zahl = 10000000000000000 ???????????

Gruss
Georg

Jul 16 '05 #1
2 2405
Hallo Georg,

1. This is NOT de.comp.lang.misc it is comp.lang.php !

Die Newsgroup ist englisch sprachig... ;-)

[...]
Wie geht das im Dualsystem ?
Gibt es da auch irgendein Kuerzel ?

zahl = 10000000000000000 ???????????

You have to use:

int bindec ( string binary_string)
or take a look at:
http://de2.php.net/manual/en/function.bindec.php

Kind regards.
Karl Heinz
--
Dipl.Ing.(FH) Karl Heinz Marbaise | Minkenberg Medien GmbH
Projektleiter / Projectmanager | www.minkenberg-medien.de
Tel.: +49 (2452) 98 91 40 | Roermonderstr. 128a
Fax.: +49 (2452) 98 91 42 | D-52525 Heinsberg

Jul 16 '05 #2
sorry, I posted in the wrong newsgroup :=(
1. This is NOT de.comp.lang.misc it is comp.lang.php !

Die Newsgroup ist englisch sprachig... ;-)


Jul 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.