60 references to MinValue
dotnet-svcutil-lib (2)
FrameworkFork\System.Runtime.Serialization\System\Xml\ValueHandle.cs (1)
331if ((value >= Single.MinValue && value <= Single.MaxValue) || double.IsInfinity(value) || double.IsNaN(value))
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriter.cs (1)
807if (d >= float.MinValue && d <= float.MaxValue && (f = (float)d) == d)
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
80{ float.MinValue, nameof(float.MinValue) },
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
80{ float.MinValue, nameof(float.MinValue) },
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
80{ float.MinValue, nameof(float.MinValue) },
Microsoft.CodeAnalysis.CSharp (1)
Utilities\ValueSetFactory.SingleTC.cs (1)
43return float.MinValue;
Microsoft.CodeAnalysis.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Performance\ConstantExpectedAnalyzer.cs (2)
319return UnmanagedHelper<float>.TryCreate(parameterSymbol, attributeData, float.MinValue, float.MaxValue, out parameter); 371return UnmanagedHelper<float>.Validate(parameterSymbol, attributeData, float.MinValue, float.MaxValue, helper, out diagnostics);
Microsoft.CodeAnalysis.VisualBasic (2)
Semantics\CompileTimeCalculations.vb (2)
535If value > Single.MaxValue OrElse value < Single.MinValue Then 563If value > Single.MaxValue OrElse value < Single.MinValue Then
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
80{ float.MinValue, nameof(float.MinValue) },
Microsoft.Data.Analysis (3)
PrimitiveDataFrameColumnComputations.cs (3)
2244var ret = float.MinValue; 2477var value = float.MinValue; 2500var value = float.MinValue;
Microsoft.ML.Core (3)
Utilities\BinFinder.cs (3)
220if (b == Single.MinValue) 221return Single.MinValue; 222a = Single.MinValue;
Microsoft.ML.Data (1)
Prediction\Calibrator.cs (1)
1100Max = float.MinValue;
Microsoft.ML.LightGbm (1)
LightGbmMulticlassTrainer.cs (1)
277float maxLabel = float.MinValue;
Microsoft.ML.Samples (2)
Dynamic\Transforms\NormalizeLogMeanVariance.cs (1)
21new DataPoint(){ Features = new float[5] { 2, 2, 2, 0, float.MinValue } },
Dynamic\Transforms\NormalizeLogMeanVarianceFixZero.cs (1)
21new DataPoint(){ Features = new float[5] { 2, 2, 2, 0, float.MinValue } },
Microsoft.ML.Sweeper (1)
Algorithms\NelderMead.cs (1)
319float maxDistance = float.MinValue;
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipe.cs (1)
23private static float[] _dataFloat = new float[] { -0.0f, 0, 1, -1, 2, -2, Single.NaN, Single.MinValue,
Microsoft.ML.Tests (8)
CollectionsDataViewTest.cs (1)
149fFloat = float.MinValue + 1,
Transformers\ConvertTests.cs (5)
163AM = new float[]{ float.MinValue, float.MaxValue,}, 231AM = new float[]{ float.MinValue, float.MaxValue,}, 243ConvM = new float[] { float.MinValue, float.MaxValue }, 252var allInputTypesData = new[] { new { A = (sbyte)sbyte.MinValue, B = (byte)byte.MinValue, C = double.MaxValue, D = float.MinValue, E = "already a string", F = false } }; 264var expectedValuesData = new[] { new { A = (sbyte)sbyte.MinValue, B = (byte)byte.MinValue, C = double.MaxValue, D = float.MinValue, E = "already a string", F = false,
Transformers\NormalizerTests.cs (2)
941new DataPointVec(){ Features = new float[5] { 2, 2, 2, 0, float.MinValue } }, 1257max = float.MinValue;
Microsoft.ML.Tokenizers (2)
Model\SentencePieceUnigramModel.cs (2)
44_maxScore = float.MinValue; 176_maxScore = float.MinValue;
Microsoft.ML.Transforms (5)
MissingValueReplacingUtils.cs (3)
550Ch.Assert(float.MinValue <= val && val <= float.MaxValue); 570Ch.Assert(float.MinValue <= val && val <= float.MaxValue); 594Ch.Assert(float.MinValue <= val && val <= float.MaxValue);
Text\WordEmbeddingsExtractor.cs (2)
431tensorD.AddRange(Enumerable.Repeat(float.MinValue, _parent._currentVocab.Dimension)); 576editor.Values[i + offset] = float.MinValue;
Microsoft.VisualBasic.Core (7)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (1)
1599If (Result < Single.MinValue OrElse Result > Single.MaxValue) AndAlso
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (3)
1780If ((result <= Single.MaxValue AndAlso result >= Single.MinValue)) Then 2098If ((result <= Single.MaxValue AndAlso result >= Single.MinValue)) Then 2402If ((result <= Single.MaxValue AndAlso result >= Single.MinValue)) Then
Microsoft\VisualBasic\CompilerServices\Operators.vb (3)
2914If ((result <= Single.MaxValue AndAlso result >= Single.MinValue)) Then 3382If ((result <= Single.MaxValue AndAlso result >= Single.MinValue)) Then 3837If ((result <= Single.MaxValue AndAlso result >= Single.MinValue)) Then
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
80{ float.MinValue, nameof(float.MinValue) },
System.Data.Common (2)
System\Data\Common\SingleStorage.cs (1)
119float max = float.MinValue;
System\Data\SQLTypes\SQLSingle.cs (1)
451public static readonly SqlSingle MinValue = new SqlSingle(float.MinValue);
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MathF.cs (1)
91return (bits == float.NegativeInfinityBits) ? float.MinValue : x;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
923static float IMinMaxValue<float>.MinValue => MinValue;
System.Private.DataContractSerialization (1)
System\Xml\ValueHandle.cs (1)
317if ((value >= float.MinValue && value <= float.MaxValue) || !double.IsFinite(value))
System.Text.Json (3)
System\Text\Json\Document\JsonElement.cs (2)
912/// <see cref="float.MaxValue"/> (or smaller than <see cref="float.MinValue"/>), 946/// <see cref="float.MaxValue"/> (or smaller than <see cref="float.MinValue"/>).
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
582/// On any framework that is not .NET Core 3.0 or higher, thrown if the JSON token value represents a number less than <see cref="float.MinValue"/> or greater
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\ManipulationSequence.cs (1)
754return float.IsNegativeInfinity(value) ? float.MinValue : float.MaxValue;