1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-14 04:15:41 +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 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;
} }