69 references to MaxValue
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)
81{ float.MaxValue, nameof(float.MaxValue) },
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
81{ float.MaxValue, nameof(float.MaxValue) },
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
81{ float.MaxValue, nameof(float.MaxValue) },
Microsoft.CodeAnalysis.CSharp (1)
Utilities\ValueSetFactory.SingleTC.cs (1)
46if (value == float.MaxValue)
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)
81{ float.MaxValue, nameof(float.MaxValue) },
Microsoft.Data.Analysis (3)
PrimitiveDataFrameColumnComputations.cs (3)
2308var ret = float.MaxValue; 2525var value = float.MaxValue; 2548var value = float.MaxValue;
Microsoft.Maui.Graphics (2)
GradientPaint.cs (2)
187 var before = float.MaxValue; 189 var after = float.MaxValue;
Microsoft.ML.Core (2)
Utilities\BinFinder.cs (2)
226if (a == Single.MaxValue) 228b = Single.MaxValue;
Microsoft.ML.Data (1)
Prediction\Calibrator.cs (1)
1099Min = float.MaxValue;
Microsoft.ML.FastTree (1)
GamModelParameters.cs (1)
385writer.WriteLine($"{-1:D}\t{float.MaxValue:R}\t{Bias:R}");
Microsoft.ML.KMeansClustering (1)
KMeansPlusPlusTrainer.cs (1)
593_bestWeight[i] = float.MaxValue;
Microsoft.ML.LightGbm (1)
LightGbmMulticlassTrainer.cs (1)
276float minLabel = float.MaxValue;
Microsoft.ML.Samples (2)
Dynamic\Transforms\NormalizeLogMeanVariance.cs (1)
20new DataPoint(){ Features = new float[5] { 1, 1, 3, 0, float.MaxValue } },
Dynamic\Transforms\NormalizeLogMeanVarianceFixZero.cs (1)
20new DataPoint(){ Features = new float[5] { 1, 1, 3, 0, float.MaxValue } },
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipe.cs (1)
24Single.MaxValue, Single.Epsilon, Single.NegativeInfinity, Single.PositiveInfinity };
Microsoft.ML.Tests (7)
CollectionsDataViewTest.cs (2)
119fFloat = float.MaxValue - 1, 134fFloat = float.MaxValue,
Transformers\ConvertTests.cs (3)
163AM = new float[]{ float.MinValue, float.MaxValue,}, 231AM = new float[]{ float.MinValue, float.MaxValue,}, 243ConvM = new float[] { float.MinValue, float.MaxValue },
Transformers\NormalizerTests.cs (2)
940new DataPointVec(){ Features = new float[5] { 1, 1, 3, 0, float.MaxValue } }, 1183min = float.MaxValue;
Microsoft.ML.Tokenizers (2)
Model\SentencePieceUnigramModel.cs (2)
43_minScore = float.MaxValue; 175_minScore = float.MaxValue;
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)
429tensorD.AddRange(Enumerable.Repeat(float.MaxValue, _parent._currentVocab.Dimension)); 574editor.Values[i] = float.MaxValue;
Microsoft.ML.Vision (1)
ImageClassificationTrainer.cs (1)
263_bestMetricValue = Single.MaxValue;
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
PresentationCore (6)
System\Windows\Media3D\Rect3D.cs (6)
636_x = -float.MaxValue, 637_y = -float.MaxValue, 638_z = -float.MaxValue, 639_sizeX = float.MaxValue * 2.0, 640_sizeY = float.MaxValue * 2.0, 641_sizeZ = float.MaxValue * 2.0
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
81{ float.MaxValue, nameof(float.MaxValue) },
System.Data.Common (2)
System\Data\Common\SingleStorage.cs (1)
103float min = float.MaxValue;
System\Data\SQLTypes\SQLSingle.cs (1)
452public static readonly SqlSingle MaxValue = new SqlSingle(float.MaxValue);
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MathF.cs (1)
59return (bits == float.PositiveInfinityBits) ? float.MaxValue : x;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\CharacterFrequencyHelper.cs (1)
85float minFrequency = float.MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
926static float IMinMaxValue<float>.MaxValue => MaxValue;
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)
583/// than <see cref="float.MaxValue"/>.
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\ManipulationSequence.cs (1)
754return float.IsNegativeInfinity(value) ? float.MinValue : float.MaxValue;