I am linking some fortran code (f90) from matlab using mex and I am having matlab freeze occasionally.
In the past, I had freezing happening due to mismatch between data types (say integer*4 vs integer*8).
The code I am linking has many implicitly defined variables, so I am wondering if there is a hidden data type conflict that only o...
I was wondering, why can't there be a void data type that is not a pointer?
Surely you could get past the whole determined size thing by having
void4
void8
void32
And then only being allowed to 'cast' a void data type to another class if its size is equal or under to the classes size.
Is there something that I'm missing, or does the...
If I understand correctly, the pre MySQL 5.0.3 interpretation of the BIT data type meant it could be used as a series of flags? If this is the case I can see practical uses for it in MySQL but imagine it would not have been as efficient as using SET.
Even if the above is not the case, I have great difficulty in understanding how the cur...
I have an Access 2003 front-end that has data stored in a SQL Server backend database. I want to store monetary values (i.e. $1,3456.25) but I am not sure which datatype to use when going between SQL Server and Access. On the SQL Server side I figured Decimal (18,2) would be good to use as I only need a scale of two (two places to the ri...
Is there a way to work with numbers that are larger than VBScript's Long?
Long's range is -2,147,483,648 to 2,147,483,647 and we need to work in an asp page with larger numbers.
We cannot work with strings and we need to sum it and do some other calculations.
...
Does anyone know where in the MySQL literature the reference is made to merging BIT fields? I am having a hard time locating any documentation that distinguishes SET from BIT.
...
Often when creating a new web app and configuring MySQL, certain fields will need to change in format as the app develops. For instance, I may change the format of a date field or a field which once was just int now needs a letter or what not. So usually I just make every field Varchar 255 until Im finished at which time Ill change dat...
I have a range of parameters that are passed via jQuery Ajax to an MVC JsonResult action. For the most part, these arrive successfully, but there is a Date value that is not arriving at all.
What considerations / formats do I need to use - or what approaches do I need to take - in order to get this date to arrive successfully?
...othe...
Non-standard mathematical analysis extends the real number line to include "hyperreals" -- infinitesimals and infinite numbers. Is there (specification for an) implementation of a data type to implement computations using hyperreals? I'm looking for something analogous to the complex number data type you find in Python and Fortran and ...
I have to store the number 600851475143 in my program. I tried to store it in long long int variable and long double as well but on compiling it shows the error "integer constant is too large for "long" type.". I have also tried unsigned long long int too. I m using MinGW 5.1.6 for running g++ on windows. What datatype should I use o sto...
I want to write a function that unpacks a char* buffer to a float* buffer.
The char* buffer was originally packed as floats to bytes.
What is the best way to do this?
I have implemented integers below.
I have packed an array of 4 byte sized integers in a char* buffer.
This is the function I used to unpack it and assign it to int*.
voi...
I am writing a program that creates ICC color formats. These formats specify a data type called s15Fixed16Number which has a sign bit, 15 integer bits and 16 fractional bits. IEEE 754 32-bit floats have a sign bit, 8 exponent bits and 23 fractional bits.
I need to get input from a text box, and convert them into a s15Fixed16Number. Some...
Hello..I have some doubts on using DECIMAL datatype in DB2 database.there is one datatype DECIMAL in DB2...can we use this datatype for representing a interger value???..If yes then Is it efficient then Interger Datatype??.....In My Database all the integer values are defined as DECIMAL datatype....How is it Useful here to use Decimal d...
Hi, I am just trying to check whether compiler allows type name as variable name.
When i tried
int int;
It reported an error saying
error C2632: 'int' followed by 'int' is illegal
But when i tried
#include <string>
using namespace std;
int main()
{
string string;
}
It didn't give any error.
Both string and int are...
I'm writing a program that reads a stream of data and parses it into some values: either integers, floats, characters, or a compound value that contains a set of values (can be nested). How could I represent that in C? I was thinking of an union of int, float, char, then having an array of pointers to such unions for the compound value, ...
If the my_list variable is global, you can't do:
my_list = []
that just create a new reference in the local scope.
Also, I found disgusting using the global keyword, so how can I empty a list using its methods?
...
Looking at the C# numeric data types, I noticed that most of the types have a signed and unsigned version. I noticed that whereas the "default" integer, short and long are signed, and have their unsigned counterpart as uint, ushort and ulong; the "default" byte is instead unsigned - and have a signed counterpart in sbyte.
Just out of cu...
If the my_dict variable is global, you can't do:
my_dict = {}
that just create a new reference in the local scope.
Also, I found disgusting using the global keyword, so how can I empty a dict using its methods?
...
Pretty simple.
UInteger data type hold any value between 0 and 4,294,967,295. MSDN.
If I try this code in VB.NET I get a compiler error:
Dim Test As UInteger = &HFFFFFFFF
Error: "Constant expression not representable in type 'UInteger'.
Why I can't set 0xFFFFFFFF (4,294,967,295) to a UInteger if this type can hold this value?
...
I'm designing a database in MySQL and PHP for a basic CMS. The CMS will have a front end which will allow sorting and searching. The backend will allow authorized users to upload files.
I'm using PHPMyAdmin and I'd like help setting up my database.
I am open to answers explaining various MySQL datatypes and what they are good for as w...