Forums

Forums (http://vipclub.99.com/index.php)
-   Off-Topic Discussion (http://vipclub.99.com/forumdisplay.php?f=38)
-   -   [VIP]Random Discussion (http://vipclub.99.com/showthread.php?t=259)

2011-03-23 11:44 AM

[VIP]Random Discussion
 
So, I wanted to randomly post thoughts here. Like spam right? But please no advertising, flaming or arguing here.

Mostly I just wanted to write that Kaichii broke my heart today </3 ;) when I tried to stalk him on Unicorn

2011-03-23 02:00 PM

Mk. Here's a thought:
I code in C#. I coded this and it confused my friend so much to the use of it.
Can anyone tell me if they understand why I use this?

Code:

byte Job = 55; 
byte Job2 = (Job /10) * 10;

What does Job2 equal?
PS: It's not 55.

2011-03-23 02:01 PM

o_o holy sh- thats confusing looking.

I only code in html or BB code so that makes no sense :(

2011-03-23 02:03 PM

Quote:

Originally Posted by Lavi (Post 4412)
o_o holy sh- thats confusing looking.

I only code in html or BB code so that makes no sense :(

=p look up what a byte is. You might learn something.

2011-03-23 02:05 PM

Quote:

Originally Posted by ~Fang~ (Post 4414)
=p look up what a byte is. You might learn something.

The byte (pronounced /ˈbaɪt/), is a unit of digital information in computing and telecommunications, that most commonly consists of eight bits. Historically, a byte was the number of bits used to encode a single character of text in a computer and it is for this reason the basic addressable element in many computer architectures.

:eek: My brain just died

2011-03-23 05:33 PM

Quote:

Originally Posted by ~Fang~ (Post 4411)
Mk. Here's a thought:
I code in C#. I coded this and it confused my friend so much to the use of it.
Can anyone tell me if they understand why I use this?

Code:

byte Job = 55; 
byte Job2 = (Job /10) * 10;

What does Job2 equal?
PS: It's not 55.

Ok, i don't understand that one :/
BTW try doing like its PHP code instead of normal code :)
It will have the colors looking quite the same as in visual studio :)

2011-03-23 05:49 PM

Would you like me to explain it?
It did set me aback the first time I saw it. Took me a few seconds.

2011-03-23 06:32 PM

Quote:

Originally Posted by ~Fang~ (Post 4524)
Would you like me to explain it?
It did set me aback the first time I saw it. Took me a few seconds.

I have interest in this =D

explain it :D

2011-03-23 06:45 PM

Quote:

Originally Posted by Mephisto (Post 4543)
I have interest in this =D

explain it :D

mk

Well, a byte is only capable of storing integers between 0 and 255. It doesn't hold decimals. Let's say that TQ is coding an NPC that reads the character's class. Well, Ninjas are 50-55. Instead of making multiple cases, i'd use something like:
Code:

if ((Character.Class / 10) * 10 == 50)
Now let's say that you're a NinjaMaster (55). Well, it would go something like this... let's break it down.
Code:

byte Test = (Character.Class / 10) * 10;
Character.Class divided by 10 is 5.5... but bytes cannot hold decimals nor can
they round, so it equals 5.
Then, it's multiplied by 10 to give 50.

The formula returns the base class.

2011-03-23 07:02 PM

Quote:

Originally Posted by Lavi (Post 4349)
So, I wanted to randomly post thoughts here. Like spam right? But please no advertising, flaming or arguing here.

Mostly I just wanted to write that Kaichii broke my heart today </3 ;) when I tried to stalk him on Unicorn

Aye, but you found me after I got home lol And random top fire being Labby? lol


All times are GMT -7. The time now is 04:58 AM.