25 references to IsNegativeInfinity
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
474float f => float.IsPositiveInfinity(f) ? "float('inf')" : float.IsNegativeInfinity(f) ? "float('-inf')" : f.ToString(CultureInfo.InvariantCulture),
dotnet-svcutil-lib (4)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
2287else if (float.IsNegativeInfinity(s))
FrameworkFork\Microsoft.CodeDom\Microsoft\VBCodeProvider.cs (1)
1329else if (float.IsNegativeInfinity(s))
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (1)
792if (Single.IsNegativeInfinity(value)) return "-INF";
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (1)
808return ToInfinity(float.IsNegativeInfinity(value), buffer, offset);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
225else if (float.IsNegativeInfinity(value))
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
225else if (float.IsNegativeInfinity(value))
Microsoft.ML.CodeGenerator (1)
Utils.cs (1)
115if (Single.IsNegativeInfinity(f.GetValueOrDefault()))
Microsoft.ML.Core (4)
Utilities\BinFinder.cs (1)
218if (Single.IsNegativeInfinity(a))
Utilities\MathUtils.cs (3)
216if (float.IsNegativeInfinity(max)) 255if (float.IsNegativeInfinity(max) || negDiff < -LogTolerance) 807if (float.IsNegativeInfinity(term))
Microsoft.ML.Data (3)
Evaluators\BinaryClassifierEvaluator.cs (1)
768if (Single.IsNegativeInfinity(point.Score))
Transforms\NormalizeColumnSng.cs (2)
1564Contracts.Assert(min <= max || (TFloat.IsPositiveInfinity(min) && TFloat.IsNegativeInfinity(max))); 1589Contracts.Assert(min <= max || (TFloat.IsPositiveInfinity(min) && TFloat.IsNegativeInfinity(max)));
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
225else if (float.IsNegativeInfinity(value))
System.CodeDom (2)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
1521else if (float.IsNegativeInfinity(s))
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
964else if (float.IsNegativeInfinity(s))
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (2)
1683Debug.Assert(IsNegativeInfinity(x)); 1728Debug.Assert(IsNegativeInfinity(x));
System.Private.DataContractSerialization (1)
System\Xml\XmlConverter.cs (1)
768return ToInfinity(float.IsNegativeInfinity(value), buffer, offset);
System.Private.Xml (2)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
4390else if (float.IsNegativeInfinity((float)value))
System\Xml\XmlConvert.cs (1)
665if (float.IsNegativeInfinity(value)) return "-INF";
System.Text.Json (1)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Float.cs (1)
163else if (float.IsNegativeInfinity(value))
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\ManipulationSequence.cs (1)
754return float.IsNegativeInfinity(value) ? float.MinValue : float.MaxValue;