Hello!
I have a problem, i didn't found yet the solution so i am asking your help.
In my database I have some int, decimal and string that needs to be convert in numeric with specific length and precision to include in a flat file.
ex:
integer 123 to numeric(8,0) ==> 00000123
decimal 123,123 to numeric(8,8) ==> 0000012312300000
String...
A little background: I'm in the process of learning Python through O'Reilly's, "Learning Python" book, I've had some experience in Java.
Anyway, upon reading Chapter 5 (I'm still in the middle of it, actually) I have come across a question with the way Python treats results of Mixed Numeric expressions. In the book, they use an example...
I have a spreadsheet that was created from a webapp. I save it as an excel wkbk. I close file and go to file and open from my pc. When I try to reformat a column of numbers, nothing happens. (it says the format is 'general' and alignment is 'general & top') it appears as all numbers, left aligned.
I have tried to 'unlock' the cells...
Hi,
I am currently working on a WPF application where I would like to have textbox that can only have numeric entries in it. I know that I can validate the content of it when I lost the focus and block the content from being numeri, but in other Windows Form application, we use to totally block any input except numerical from being wri...
I have defined an environment as
\newenvironment{question}[1]
{Question (#1 points):}{}
I am using it as
\begin{question}[10]
...
\end{question}
I get the following error:
Missing number, treated as zero
\begin{question}[
10]
...
Consider the following:
print 3 ** 333; #Yields 7.6098802313206e+158
My question is simple: How can I disable scientific notation when working with very large numbers? Basically, I'd like to see all the digits dumped to stdout verbatim.
Is this possible?
...
I have a table view with each cell having a text field accepting numeric values only. I added the custom decimal place to the default numeric keypad, for my purpose. Since there is no "Done" button to dispose the keypad, I added a button over the table view. The button's background's opaque value is set to zero. The button is hidden when...
text field which allowing only numeric values and arithematic symbols in blackberry
...
I'm creating a GUI application that requires the user to provide lots of numeric data. What is the best font to display the user's data? I assume that a mono-spaced font would be better in this case, as multiple lines will have the same number of characters.
...
How can I know if a VARCHAR field's value can be successfully converted to an integer?
I want to do it massively to insert records from one table to another...
...
Is there a better way than this to check if a DataColumn in a DataTable is numeric (coming from a SQL Server database)?
Database db = DatabaseFactory.CreateDatabase();
DbCommand cmd = db.GetStoredProcCommand("Get_Some_Data");
DataSet ds = db.ExecuteDataSet(cmd);
foreach (DataTable tbl in ds.Tables) {
foreach (DataColumn col...
I'm building a Java Lucene-based search system that, on addition, adds a certain number of meta-fields, one of which is a sourceId field, which denotes where the entry came from.
I'm now trying to retrieve all documents from a particular source, but the index doesn't appear to be able to find them. However, if I search for a wildcard va...
Hi,
I did a numeric method as my diploma thesis and coded it in java. It needs a loot of computational time when done adequate.
So I looked for an alternative and found BOINC. Unfortunally I didn't have time for doing my method in BOINC, because I'm an aerospace student and not a programmer and I decided to keep my priority on my java p...
i see this question but none of the solutions support min and max values range
http://stackoverflow.com/questions/995183/how-to-allow-only-numeric-0-9-in-html-inputbox-using-jquery
I see that http://jstepper.emkay.dk/ attempts to do this but seems very buggy as it allows you to enter multiple decimal places and other characters such as...
Hi everyone,
I have to deal with a numeric value (coming from a SQL Server 2005 numeric column) which I need to convert to a string, with the caveat that the decimal point has to be removed. The data itself is accessible in C# via a DataTable/DataRow.
For example, if the SQL Server column reads 12345.678, the string should be "1234567...
So I'm suppose to build a multidimensional array dynamically from a text file, and everything works perfectly except that the numeric keys are screwing me over...
The text file looks something like this:
a=1
b.c=2
b.d.0.e=3
b.d.0.f=4
b.d.1.e=5
b.d.1.f=6
As the array_merge_recursive doesn't work with numeric keys, the output is like...
Hi guys
I have an error being thrown by SQL Server Management Studio when running this code:
declare @percentage numeric(3,2)
set @percentage = cast(15 as numeric(3,2))
but when I change numeric declaration to
declare @percentage numeric(4,2)
set @percentage = cast(15 as numeric(4,2))
everything goes fine.
Is there a limitation ...
How can I create a nullable numeric optional parameter in VB.NET?
...
I need to check if a string contains only digits. How could I achieve this in C#?
string s = "123" → valid
string s = "123.67" → valid
string s = "123F" → invalid
Is there any function like IsNumeric?
...
The last three of these method calls take approx. double the time than the first four.
The only difference is that their arguments doesn't fit in integer anymore. But should this matter? The parameter is declared to be long, so it should use long for calculation anyway. Does the modulo operation use another algorithm for numbers>maxint...