mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-06-04 14:13: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);
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
}
|