diff --git a/nanoFramework.System.Math/Math.cs b/nanoFramework.System.Math/Math.cs
index 44b3620..325034a 100644
--- a/nanoFramework.System.Math/Math.cs
+++ b/nanoFramework.System.Math/Math.cs
@@ -24,16 +24,6 @@ public static class Math
/// The value of this field is 2.7182818284590452354.
public const double E = 2.7182818284590452354;
- ///
- /// Returns the absolute value of a 32-bit signed integer.
- ///
- /// A number that is greater than Int32..::..MinValue, but less than or equal to Int32..::..MaxValue.
- /// A 32-bit signed integer, x, such that 0 ≤ x ≤ Int32..::..MaxValue.
- public static int Abs(int val)
- {
- return MathInternal.Abs(val);
- }
-
///
/// Returns the larger of two 32-bit signed integers.
///
@@ -56,6 +46,16 @@ public static int Min(int val1, int val2)
return MathInternal.Min(val1, val2);
}
+ ///
+ /// Returns the absolute value of a 32-bit signed integer.
+ ///
+ /// A number that is greater than Int32..::..MinValue, but less than or equal to Int32..::..MaxValue.
+ /// A 32-bit signed integer, x, such that 0 ≤ x ≤ Int32..::..MaxValue.
+ public static int Abs(int val)
+ {
+ return MathInternal.Abs(val);
+ }
+
///
/// Returns the absolute value of a double-precision floating-point number.
///
@@ -68,6 +68,14 @@ public static int Min(int val1, int val2)
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern double Abs(double val);
+ ///
+ /// Returns the absolute value of a single-precision floating-point number.
+ ///
+ /// A number that is greater than or equal to MinValue, but less than or equal to MaxValue.
+ /// A single-precision floating-point number, x, such that 0 ≤ x ≤ MaxValue.
+ [MethodImpl(MethodImplOptions.InternalCall)]
+ public static extern float Abs(float val);
+
///
/// Returns the angle whose cosine is the specified number.
///
diff --git a/nanoFramework.System.Math/Properties/AssemblyInfo.cs b/nanoFramework.System.Math/Properties/AssemblyInfo.cs
index 5fb59b8..9e11b39 100644
--- a/nanoFramework.System.Math/Properties/AssemblyInfo.cs
+++ b/nanoFramework.System.Math/Properties/AssemblyInfo.cs
@@ -12,6 +12,6 @@
////////////////////////////////////////////////////////////////
// update this whenever the native assembly signature changes //
-[assembly: AssemblyNativeVersion("100.0.5.0")]
+[assembly: AssemblyNativeVersion("100.0.5.1")]
////////////////////////////////////////////////////////////////