• Lucid Dreaming - Dream Views




    Page 1 of 3 1 2 3 LastLast
    Results 1 to 25 of 58
    1. #1
      Consciousness Itself Universal Mind's Avatar
      Join Date
      Apr 2004
      Gender
      Location
      Everywhere
      Posts
      12,871
      Likes
      1046
      That's right. I can prove it. I really can. I will. You can't prove that it's not. Just try it. I can prove that it is! COME ON!!!!!
      How do you know you are not dreaming right now?

    2. #2
      Member
      Join Date
      Jan 2007
      Location
      Texas, outskirts of Dallas
      Posts
      137
      Likes
      1
      how?

    3. #3
      "O" will suffice. Achievements:
      1 year registered Made lots of Friends on DV Referrer Gold Veteran First Class Populated Wall Tagger First Class 25000 Hall Points Vivid Dream Journal
      Oneironaut Zero's Avatar
      Join Date
      Apr 2005
      LD Count
      20+ Years Worth
      Gender
      Location
      Central Florida
      Posts
      16,083
      Likes
      4031
      DJ Entries
      149
      [insert heavy, heavy sigh, here]
      http://i.imgur.com/Ke7qCcF.jpg
      (Or see the very best of my journal entries @ dreamwalkerchronicles.blogspot)

    4. #4
      Toast
      Join Date
      Sep 2006
      Gender
      Location
      Undisclosed :O
      Posts
      1,083
      Likes
      4
      Then please do

    5. #5
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      floating point to integer casting

      2 + 2 = 5, for sufficiently large values of 2

      2.4 (which is rounded down to 2)
      +
      2.4 (which is rounded down to 2)
      =
      4.8 (which is rounded up to 5)
      (\_ _/)
      (='.'=)
      (")_(")

    6. #6
      Member krookedking's Avatar
      Join Date
      Jan 2007
      Gender
      Location
      south of france
      Posts
      248
      Likes
      0
      2+2=6 dah....
      Getting back to LDing


      -This can be a dream-

    7. #7
      Member Kaniaz's Avatar
      Join Date
      Jan 2004
      Gender
      Location
      England
      Posts
      5,441
      Likes
      9
      2.4 (which is rounded down to 2)
      +
      2.4 (which is rounded down to 2)[/b]
      If you casted those to ints beforehand, it wouldn't work?

    8. #8
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      Code:
      #include <iostream>
      #include <cmath>
      
      int add(float* a, float* b)
      {
      ****int c = ceil(*a + *b);
      *****a = (int)*a;
      *****b = (int)*b;
      ****return c;
      }
      
      int main()
      {
      ****float a = 2.4;
      ****float b = 2.4;
      ****
      ****int c = add(&a, &b);
      ****
      ****std::cout << "a + b = c" << "\n";
      ****std::cout << a << " + " << b << " = " << c << "\n";
      ****
      ****return 0;
      }
      (\_ _/)
      (='.'=)
      (")_(")

    9. #9
      Callapygian Superstar Goldney's Avatar
      Join Date
      Jan 2007
      Gender
      Location
      Budapest
      Posts
      1,901
      Likes
      11
      Already knew that
      *............*............*

    10. #10
      Cosmic Citizen ExoByte's Avatar
      Join Date
      Aug 2006
      LD Count
      ~A Dozen
      Gender
      Location
      Ontario
      Posts
      4,394
      Likes
      117
      [insert heavy, heavy sigh, here]

      [/b]

      I concur

      I get it though
      This space is reserved for signature text. A signature goes here. A signature is static combination of words at the end of a post. This is not a signature. Its a signature placeholder. One day my signature will go here.

      Signed,
      Me

    11. #11
      Member Kaniaz's Avatar
      Join Date
      Jan 2004
      Gender
      Location
      England
      Posts
      5,441
      Likes
      9
      Code:
      int add(float* a, float* b)
      {
      ****int c = ceil(*a + *b);
      *****a = (int)*a;
      *****b = (int)*b;
      ****return c;
      }
      OK...what's so special about saying that 2.4 + 2.4 rounded up to the nearest whole number is 5 (surprise)?

      Yes, when you cast them to integers afterwards, they become 2, because they are rounded down, but that's a loss of data - as your compiler probably says - and consequently not the same value. So when you later print the sum:

      Code:
      std::cout << a << " + " << b << " = " << c << "\n";
      You're printing out a sum different from the one add() actually carried out, i.e. a and b have changed values. I don't really get it. I suppose on dodgy calculators or something it might be a bit cooler.

      I think I just killed the coolness and made myself look like a pretentious bastard. Hey, what's new.

    12. #12
      Member Identity X's Avatar
      Join Date
      Mar 2004
      Gender
      Posts
      1,529
      Likes
      7
      Your using floats. Try turning 2 into a float in any language and you'll get 2.0

      2.0 + 2.0 = 4.0

      ...where is the five?

    13. #13
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      it's a simple example
      and so, the errors blindingly obvious

      in a bigger program, it may be over looked

      imagine a big program......that calculates wages......your wages.......
      (\_ _/)
      (='.'=)
      (")_(")

    14. #14
      Member Achievements:
      1 year registered 5000 Hall Points Veteran First Class
      TripleX223's Avatar
      Join Date
      Feb 2007
      Gender
      Location
      New Hampshire, United States
      Posts
      556
      Likes
      0
      lol

    15. #15
      Member Kaniaz's Avatar
      Join Date
      Jan 2004
      Gender
      Location
      England
      Posts
      5,441
      Likes
      9
      Try turning 2 into a float in any language and you'll get 2.0[/b]
      <strike>No you won&#39;t.</strike> I read that wrong. Yes you will.

      in a bigger program, it may be over looked[/b]
      Yeah, but you&#39;d be the world&#39;s worst typecaster. C-style casts in themselves are a bit dodgy, and you&#39;d be somehow kicking the compiler in the face to stop it from warning you.

      imagine a big program......that calculates wages......your wages.......[/b]
      On the other hand, if you mean my wages are going to go up because of some rounding errors, I&#39;m all for it. Viva la float&#33;

    16. #16
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      I object to the bbcode putting <?php on the box header

      who do you think I am &#33;&#33;&#33;
      (\_ _/)
      (='.'=)
      (")_(")

    17. #17
      Consciousness Itself Universal Mind's Avatar
      Join Date
      Apr 2004
      Gender
      Location
      Everywhere
      Posts
      12,871
      Likes
      1046
      Quote Originally Posted by Lord View Post
      Then please do
      [/b]
      I&#39;m tired. I&#39;m going to bed. I&#39;ll do it later.
      How do you know you are not dreaming right now?

    18. #18
      Cosmic Citizen ExoByte's Avatar
      Join Date
      Aug 2006
      LD Count
      ~A Dozen
      Gender
      Location
      Ontario
      Posts
      4,394
      Likes
      117
      HA&#33;
      This space is reserved for signature text. A signature goes here. A signature is static combination of words at the end of a post. This is not a signature. Its a signature placeholder. One day my signature will go here.

      Signed,
      Me

    19. #19
      Consciousness Itself Universal Mind's Avatar
      Join Date
      Apr 2004
      Gender
      Location
      Everywhere
      Posts
      12,871
      Likes
      1046
      I&#39;ll explain it tomorrow. You can book it. It&#39;s a done deal. Tomorrow&#33;
      How do you know you are not dreaming right now?

    20. #20
      Member gregash's Avatar
      Join Date
      Mar 2006
      Location
      Minnesota
      Posts
      110
      Likes
      1
      Quote Originally Posted by Universal View Post
      I&#39;ll explain it tomorrow. You can book it. It&#39;s a done deal. Tomorrow&#33;
      [/b]
      Can I call you a liar if you don&#39;t?

    21. #21
      Member
      Join Date
      May 2004
      Location
      australia
      Posts
      613
      Likes
      0
      Only if he doesn&#39;t have a really good excuse

    22. #22
      - Neruo's Avatar
      Join Date
      Dec 2005
      Gender
      Location
      The Netherlands
      Posts
      4,438
      Likes
      7
      This topic reminds me of the book &#39; 1984&#39; (great book).

      Also, only the pope can prove 2+2=5.
      “What a peculiar privilege has this little agitation of the brain which we call 'thought'” -Hume

    23. #23
      Somniator iam, expectans. Arachanox's Avatar
      Join Date
      Feb 2007
      LD Count
      2+
      Gender
      Location
      Louisiana
      Posts
      111
      Likes
      0
      Once again, Neruo has something anti-Pope or Christian to say.

      And sure, 2 + 2 = 5 if they are both 2.4.
      Somniamus ut mundos novos videmus.
      "We dream so that we may see new worlds."

    24. #24
      Callapygian Superstar Goldney's Avatar
      Join Date
      Jan 2007
      Gender
      Location
      Budapest
      Posts
      1,901
      Likes
      11
      Why is this topic still going on? What&#39;s not to get?
      *............*............*

    25. #25
      Member Joseph_Stalin's Avatar
      Join Date
      Apr 2004
      Location
      Communism is everywhere my friends...
      Posts
      1,016
      Likes
      3
      Quote Originally Posted by Ynot View Post

      [/b]
      Yes. But see, you&#39;ve just done what I can do with text, except with more work. You&#39;ve haven&#39;t actually "made" 2 + 2 = 5 (which is impossible if we are allowing the 2&#39;s to represent two units and the 5 to represent five units). You&#39;ve basically just coded something which will display a "picture" showing 2 + 2 = 5.

      Ta da:

      2 + 2 = 5

      Behold the magic of the characters " ". "2", "5", "+", and "=".

      "In the end, the lord shalth return in full regulation Soviet Uniform, hailing Lenin as thy true messiah." -Siberian Revealations

    Page 1 of 3 1 2 3 LastLast

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •