25 references to IsNegativeInfinity
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
2287
else if (float.
IsNegativeInfinity
(s))
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (1)
792
if (Single.
IsNegativeInfinity
(value)) return "-INF";
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (1)
808
return ToInfinity(float.
IsNegativeInfinity
(value), buffer, offset);
Microsoft.Cci.Extensions (1)
Writers\CSharp\CSDeclarationWriter.Attributes.cs (1)
285
if (float.
IsNegativeInfinity
(val))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
217
else if (float.
IsNegativeInfinity
(value))
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
217
else if (float.
IsNegativeInfinity
(value))
Microsoft.ML.CodeGenerator (1)
Utils.cs (1)
115
if (Single.
IsNegativeInfinity
(f.GetValueOrDefault()))
Microsoft.ML.Core (4)
Utilities\BinFinder.cs (1)
218
if (Single.
IsNegativeInfinity
(a))
Utilities\MathUtils.cs (3)
216
if (float.
IsNegativeInfinity
(max))
255
if (float.
IsNegativeInfinity
(max) || negDiff < -LogTolerance)
807
if (float.
IsNegativeInfinity
(term))
Microsoft.ML.Data (2)
Transforms\NormalizeColumnSng.cs (2)
1564
Contracts.Assert(min <= max || (TFloat.IsPositiveInfinity(min) && TFloat.
IsNegativeInfinity
(max)));
1589
Contracts.Assert(min <= max || (TFloat.IsPositiveInfinity(min) && TFloat.
IsNegativeInfinity
(max)));
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
217
else if (float.
IsNegativeInfinity
(value))
System.CodeDom (2)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
1523
else if (float.
IsNegativeInfinity
(s))
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
968
else if (float.
IsNegativeInfinity
(s))
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Single.cs (2)
1634
Debug.Assert(
IsNegativeInfinity
(x));
1679
Debug.Assert(
IsNegativeInfinity
(x));
System.Private.DataContractSerialization (1)
System\Xml\XmlConverter.cs (1)
768
return ToInfinity(float.
IsNegativeInfinity
(value), buffer, offset);
System.Private.Xml (2)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
4325
else if (float.
IsNegativeInfinity
((float)value))
System\Xml\XmlConvert.cs (1)
665
if (float.
IsNegativeInfinity
(value)) return "-INF";
System.Text.Json (1)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Float.cs (1)
163
else if (float.
IsNegativeInfinity
(value))
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\ManipulationSequence.cs (1)
754
return float.
IsNegativeInfinity
(value) ? float.MinValue : float.MaxValue;
xunit.assert (2)
EqualityAsserts.cs (2)
467
if (float.IsNaN(tolerance) || float.
IsNegativeInfinity
(tolerance) || tolerance < 0.0)
948
if (float.IsNaN(tolerance) || float.
IsNegativeInfinity
(tolerance) || tolerance < 0.0)