Jump to content


A question about the / function in WeiDU


  • Please log in to reply
2 replies to this topic

#1 -Guest-

-Guest-
  • Guest

Posted 23 July 2004 - 05:22 PM

The standard in most languages is to take the integer portion of it only - that is, 0.1 becomes 0, but 0.99999 also becomes 0. However, WeiDU *may* add 0.5 before the integer is taken, hence achieving the mathematical rounding.
As for a hex editor, I use http://www.chmaas.ha...xvi32/xvi32.htm , although it only runs on Windows.

#2 MagusWizardo

MagusWizardo

    Don't ask... please don't ask.

  • Member
  • 201 posts

Posted 23 July 2004 - 05:23 PM

The standard in most languages is to take the integer portion of it only - that is, 0.1 becomes 0, but 0.99999 also becomes 0. However, WeiDU *may* add 0.5 before the integer is taken, hence achieving the mathematical rounding.
As for a hex editor, I use http://www.chmaas.ha...xvi32/xvi32.htm , although it only runs on Windows.

Was me.

#3 the bigg

the bigg

    2083 is a prime number.

  • Modder
  • 3331 posts

Posted 24 July 2004 - 12:01 AM

Oh, thanks for the answer!
Unfortunately, I've already found out the answer by myself, but still thanks for spending the time!

Italian users: help test the Stivan NPC!

Author or Co-Author: WeiDU - Widescreen - Generalized Biffing - Refinements - TB#Tweaks - IWD2Tweaks - TB#Characters - Traify Tool - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics - Nalia Mod - Nvidia Fix
Code dumps: Detect custom secondary types - Stutter Investigator

If possible, send diffs, translations and other contributions using Git.