mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-05-29 03:23:37 +02:00
16 lines
294 B
C#
16 lines
294 B
C#
using System;
|
|
|
|
namespace MLEM.Extensions {
|
|
public static class NumberExtensions {
|
|
|
|
public static int Floor(this float f) {
|
|
return (int) Math.Floor(f);
|
|
}
|
|
|
|
public static int Ceil(this float f) {
|
|
return (int) Math.Ceiling(f);
|
|
}
|
|
|
|
|
|
}
|
|
} |