Skip to main content

All Questions

Tagged with
1 vote
1 answer
115 views

Multiple polynomial regression in C#

So I need to fit some vectorized data into a 3rd degree polynomial, however I can't find any libraries in C# that are able to do that. Essentially, x is a vector with 3 elements ([R, G, B]), and the ...
Lucas Pevidor's user avatar
2 votes
3 answers
100 views

Find occurrence of YYYYmmDD date in variable string

Suppose I have a string containing dates in YYYYmmDD format but in variable position and containing also other numeric sequences For example: xx12x20240113yyyy123zzzz 20240201xxxx34yyy ...
user24145613's user avatar
1 vote
1 answer
527 views

Excel scientific notation converting numeric value to E+ characters

Excel scientific notation converting numeric value to E+ characters. How to handle this in excel parcing in c#? im expecting it as string value.for example my input is '123456789012345678901234567890' ...
Vidya R's user avatar
  • 57
0 votes
1 answer
80 views

Numerics BigInteger.Remainder (Mod) doesn't work with negative divisors

Consider the following equations: 10 % 3 = 1 10 % -3 = -2 10001 % 30 = 11 10001 % -30 = -19 C#'s System.Numerics.BigInteger Seems to produce positive results for negative divisors, as if ...
Matthew Layton's user avatar
2 votes
1 answer
218 views

Are vectors and matrices reference or value types? Math.Net Numerics

Excuse my ignorance, but are vectors and matrices reference or value types? Not sure if that makes a difference, but I am referring to those created from an array? I tried to look it up online quickly,...
user20593243's user avatar
0 votes
0 answers
75 views

C# is value part of Enum [duplicate]

I found an edge case for enum values and want to know whether there is a solution for that problem in .net5 I´ve got the following enum: public enum SomeEnum : ushort { FirstValue = 0x9D80, ...
Felix Arnold's user avatar
0 votes
1 answer
478 views

Clear numerical Textbox and send Value - C# Selenium

I have a numerical Textfield. I can fill this Textfield with Sendkeys ... This is the HTML Code. HTML-Code: <input class="form-control busy-disabled" id="entry-lots" type="number" value="1" ...
Dragon's user avatar
  • 89
1 vote
2 answers
2k views

How to solve the Galaxy numeric keyboard nightmare

I've been struggling with the Samsung Galaxy numeric keyboard decimal separator nightmare. I have an Entry on which I must only accept numeric values (including decimals), so in my xaml code I wrote &...
Gabic's user avatar
  • 714
-3 votes
2 answers
186 views

Merge 2 Numeric strings Alternatively every Nth place [closed]

I have 2 Numeric strings with commas: 8,1,6,3,16,9,14,11,24,17,22,19 and 2,7,4,5,10,15,12,13,18,23,20,21 and I need to merge them Alternatively every Nth place (for Example every 4th place to get) 8,1,...
EdV's user avatar
  • 55
0 votes
1 answer
97 views

Input string was not in a correct format wtih cm.Parameters.AddWithValue

I got this error message : input string was not in a correct format It throws this error message at these two codes: cm.Parameters.AddWithValue("@price", double.Parse(frmCancelDetails....
Anas's user avatar
  • 113
-2 votes
1 answer
966 views

Why does (float.MaxValue / float.MinValue) evaluate to Infinity?

Consider the following code and results: double min = (double) float.MinValue; double max = (double) float.MaxValue; double epsilon = (double) float.Epsilon; double range = max - min; double delta = ...
Raheel Khan's user avatar
  • 14.8k
0 votes
1 answer
190 views

Intersection of 2 lines - numerical analysis

I have 2 two-dimensional arrays that represent 2 lines/curves, something like: (y1,t1) (y2,t2) ... (yN, tN) and (Y1, t1) (Y2, t2) ... (YN, tN) My goal is to find the last point from the beginning of ...
Leon's user avatar
  • 339
0 votes
1 answer
261 views

Increment/Decrement value from NumericUpDown

I have the following problem. I create a form with two NumericUpDown and I want to increment/decrement the value from them by 0.01. I tried to use NumericUpDownObject.Increment=0.01M, but there is no ...
DariusMan's user avatar
0 votes
1 answer
122 views

Why does the Azure SQL Server store and display numbers but not exchange them with C#?

Column datatype As seen in SSMS "edit top 200 rows" As returned from a SELECT statement decimal(29, 26) < Unable to read data > -795.00000000000000000000000000 decimal(29, 26) -790....
Scott Pendleton's user avatar
2 votes
2 answers
593 views

Why am I getting a system overflow using big integer (System.Numerics)?

I am getting this error: System.OverflowException: 'The value is not a number.' I was under the impression that big integer could store any sized value (500 ^ 500 in this case), so I don't understand ...
John Smith's user avatar

15 30 50 per page
1
2 3 4 5
11