[Vala] Patch to include fabs, abs, MAX and MIN



Hello

The attached patch adds to GLib.Math the following methods:
- max
- min
- fabs
- abs

However, what do you think about using max and min methods with
different signatures, let say:

fmax, fmin: floats
max, min: integers
dmax, dmin: doubles

Attached patch defines the parameters for max and min as doubles.

-
Regards
Mario Carrión

Attachment: glib-2.0.patch
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]