puzzle

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
User avatar
10der
Posts: 80
Joined: 08 Jul 2016 00:23
Location: Ukraine - Berkeley, CA

puzzle

Post by 10der »

Guys! guess for you:

Code: Select all

is 9303 >= 3000000000 ?

Code: Select all

void loop() {
  // put your main code here, to run repeatedly:

  Serial.println(millis());
  if (millis() >= 3000000000) {
    Serial.println("Hello");
  }
You won't believe it! here is an answer:
Image

JFYI:

Code: Select all

DWORD millis();
// a 32-bit unsigned integer. The range is 0 through 4294967295 decimal.

Code: Select all

DWORD MAX_DWORD = 4294967295; // FFFF FFFF
                                            3000000000; // B2D0 5E00‬
config.sys
driver=direct_hand.sys
p0lyg0n1
Posts: 242
Joined: 04 Aug 2016 07:14

Re: puzzle

Post by p0lyg0n1 »

Use "L" at the end of constant... Int for default, SIZEOF(int) =2
Post Reply