mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-13 00:35:40 +00:00
Use double parameter for double.ToBoolean
This commit is contained in:
parent
45eb0ef415
commit
3d44132865
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace X10D
|
namespace X10D
|
||||||
{
|
{
|
||||||
@ -133,7 +133,7 @@ namespace X10D
|
|||||||
/// <returns>
|
/// <returns>
|
||||||
/// <see langword="true" /> if <paramref name="value" /> is not zero, or <see langword="false" /> otherwise.
|
/// <see langword="true" /> if <paramref name="value" /> is not zero, or <see langword="false" /> otherwise.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
public static bool ToBoolean(this float value)
|
public static bool ToBoolean(this double value)
|
||||||
{
|
{
|
||||||
return value != 0.0;
|
return value != 0.0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user