1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-23 00:18:47 +00:00

Use double parameter for double.ToBoolean

This commit is contained in:
Oliver Booth 2021-07-20 17:20:35 +01:00
parent 45eb0ef415
commit 3d44132865
No known key found for this signature in database
GPG Key ID: A4AC17007530E9B4

View File

@ -1,4 +1,4 @@
using System;
using System;
namespace X10D
{
@ -133,7 +133,7 @@ namespace X10D
/// <returns>
/// <see langword="true" /> if <paramref name="value" /> is not zero, or <see langword="false" /> otherwise.
/// </returns>
public static bool ToBoolean(this float value)
public static bool ToBoolean(this double value)
{
return value != 0.0;
}