The Dink Network

Reply to Re: Dink's World

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
April 30th 2004, 04:14 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
int &quest = 12345;
int &crap = ?
&crap / 100;
&crap * 100;
int &brap = ?
&brap -= &crap;

&brap is now 45

The trick is that Dink loses the fraction when dividing, so 12345/100 will give 123 and not 123.45.
Multiply 123 by 100, and you'll get 12300, substract 12300 from 12345, and you'll end up having 45.

EDIT: This works in the original Dink, I don't know what other math functions reDink might have that could make this easier for you.