85 references to MinValue
BinaryFormatTests (3)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (1)
200new SizeF(float.MaxValue, float.MinValue),
FormatTests\FormattedObject\HashTableTests.cs (1)
211{ float.MinValue, float.MaxValue },
FormatTests\FormattedObject\PrimitiveTypeTests.cs (1)
72{ (byte)PrimitiveType.Single, float.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)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTests.SpecialTypes.cs (1)
190new object[] { "float", "float.MinValue", float.MinValue, true },
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
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.CSharp.Semantic.UnitTests (1)
Utilities\ValueSetTests.cs (1)
329Assert.Equal("[-Inf..-Inf]", ForFloat.Related(LessThan, float.MinValue).ToString());
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
86VerifySyntax<MemberAccessExpressionSyntax>(Generator.LiteralExpression(float.MinValue), "global::System.Single.MinValue");
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.VisualBasic.Semantic.UnitTests (2)
Semantics\Conversions.vb (2)
575New TypeAndValue(singleType, Single.MinValue), 1136New TypeAndValue(singleType, Single.MinValue),
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.vb (1)
82VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Single.MinValue), "Global.System.Single.MinValue")
Microsoft.CodeAnalysis.Workspaces (2)
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.DotNet.XUnitAssert.Tests (3)
EqualityAssertsTests.cs (3)
2279 Assert.Equal(float.MinValue, float.MaxValue, float.PositiveInfinity); 4245 var ex = Record.Exception(() => Assert.NotEqual(float.MinValue, float.MaxValue, float.PositiveInfinity)); 4250 $"Expected: Not {float.MinValue:G9}" + Environment.NewLine +
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 (1)
Model\SentencePieceUnigramModel.cs (1)
41_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
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.Drawing.Common.Tests (17)
mono\System.Drawing\GraphicsTests.cs (7)
1234using Bitmap bitmap = FillDrawRectangle(float.MinValue); 1399using Bitmap bitmap = DrawFillRectangle(float.MinValue); 1543using Bitmap bitmap = DrawLines(float.MinValue); 2057Region[] min = Measure_Helper(gfx, new RectangleF(0, 0, float.MinValue, float.MinValue), useSpan); 2567Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, float.MaxValue, float.MinValue)); 2575Assert.Throws<OverflowException>(() => g.DrawImage(bmp, float.MaxValue, float.MinValue));
System\Drawing\Drawing2D\CustomLineCapTests.cs (2)
174[InlineData(float.MinValue)] 195[InlineData(float.MinValue)]
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (2)
273[InlineData(new float[] { float.MinValue }, new float[] { float.MinValue })]
System\Drawing\Drawing2D\PathGradientBrushTests.cs (5)
219PointF centralPoint = new(float.MaxValue, float.MinValue); 818matrix.Scale(float.MaxValue, float.MinValue, MatrixOrder.Prepend); 819brush.ScaleTransform(float.MaxValue, float.MinValue); 822matrix.Scale(float.MinValue, float.MaxValue, MatrixOrder.Prepend); 823brush.ScaleTransform(float.MinValue, float.MaxValue);
System\Drawing\RegionTests.cs (1)
1947[InlineData(float.MinValue)]
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\MathF.cs (1)
93return (bits == float.NegativeInfinityBits) ? float.MinValue : x;
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
907static 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.Private.Windows.Core.Tests (4)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (3)
61new SizeF(float.MaxValue, float.MinValue), 77new List<float> { float.MinValue, float.MaxValue }, 97new float[] { float.MinValue, float.MaxValue },
System\Value\StoringFloat.cs (1)
13{ float.MinValue },
System.Text.Json (3)
System\Text\Json\Document\JsonElement.cs (2)
911/// <see cref="float.MaxValue"/> (or smaller than <see cref="float.MinValue"/>), 945/// <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.Forms.Tests (1)
System\Resources\ResxDataNodeTests.cs (1)
134{ float.MinValue, float.MaxValue },
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\ManipulationSequence.cs (1)
754return float.IsNegativeInfinity(value) ? float.MinValue : float.MaxValue;