on the main site lack the mathematical functions.

Since many user here, and elsewhere on the web, they have developed a lot, you can now reap the fruits of their sowing and planting new seeds.

I hope for the cooperation of all to make a point of reference.

I have not tried on StackOverflow/Stack... nor groups discussion or sites, for example, in German (or Russian or other) because they do not know the German nor the Russian enough. So if someone speaking German or Russian or else can do a search and also bring only the link where they talk about mathematical functions I will take the responsibility to keep this thread neat.

I had thought to create functions that could go well for both

**32bit integers**,

**64bit integer**(2*32), a

**fixed point**math as simple as that defined by Antonio Acini, the

**float point**defined by Penpen, I thought I'd define a

**new mathematical fixed point**such as the one defined in the console games (for example see Nintendo DS).

I also decided to make versions that take advantage of the concept of

**macro**.

**List functions to implement:**

- Abs(x)
- Sign(x)
- Ceil(x)
- Floor(x)
- Cos(x)
- Sin(x)
- Tan(x)
- Pow(x,y)
- Log(x)
- Ln(x)
- Round(x)
- Sqrt(x)
- Hypot(x,y)
- Min(x,y)
- Max(x,y)
- Cmp(x,y)

Reference:

(nearly) ieee 754 floating point single precisition by penpen

Definition and use of arithmetic "functions" in Batch files by Antonio Acini aka Aacini

Thanks to all

Francesco Poscetti aka einstein1969