Questions tagged [type-conversion]

0 votes
2 replies
I am currently trying to save a set of integers in a int array, by redefining string into numbers, then store it in the array
I am trying to convert input text/numbers (string), which will include any characters, but I want to separate the numbers from the characters and...
asked 4 months ago
0 votes
2 replies
Need help converting an AM - PM stat end time string into Datetime 24hr
I am trying to convert some data from csv to a specific json data structure, and have a string that is in the format of the following separate ex...
1 votes
1 replies
Numpy/Pytorch dtype conversion / compatibility
I'm trying to find some documentation understand how dtypes are combined. For example: x : np.int32 = ... y : np.float64 = ... What is going...
-1 votes
0 replies
Changing a string to an integer from input [duplicate]
Just have a quick question. I've looked around the internet quite a bit and I've found a few solutions but none of them have worked yet. Looking...
asked 4 months ago
0 votes
2 replies
how to read the contents of file and convert it into dictionary in python
I have a text file (applications.txt) containing n number of lines of data (with 2 delimiters) in the below format. 1) mytvScreen|mytvScreen|M...
0 votes
1 replies
Converting Dataframe column with list objects to floating point numbers [duplicate]
This question already has an answer here: Accessing every 1st element of Pandas DataFrame column containing lists...
0 votes
0 replies
Auto convert specific data type from c# to client
Is there any way to set globally rule for example in global.asax in C# to automatically convert and change specific data type to another data typ...
asked 4 months ago
-1 votes
0 replies
Function string with array “int” in arguments can not return int. What kind of function can i use, to convert array in c++?
I'm newbie and i started to learning at page such like eulers problem and codility, but very often solutions are in another language (Java,C#, et...
asked 4 months ago
-6 votes
3 replies
How to convert a String to a float array?
I have a String like this: String volt = “[1.2, 3.1, 5.3]”; How can I convert the String to a float array ? -6 I don't understand what...
asked 4 months ago
0 votes
1 replies
Write generic SQL for both SQL Server and Oracle for displaying dates
I do have to query SQL Server and Oracle DB for the same project. The DBMS depends on the client, but the structure is exactly the same. For ex...
0 votes
1 replies
Loop a number write in console
I'm doing an exercise to train myself and I'm currently blocked with a variable in my loop. main.py from interface import * from function impor...
asked 4 months ago
0 votes
1 replies
Arithmetic overflow error converting expression to data type int message in T-SQL code
I have the following code: SELECT ehrprg.ReportName ,ehrprg.AnnualGoalServiceMinutes ,COUNT(DISTINCT ct...
0 votes
1 replies
How to convert unaware datetime strings into aware datetime objects with timezone?
I am running queries into Big Query and Postgres Databases and return the results as lists, which I later on transform into pandas dataframes. Th...
-1 votes
1 replies
Converting entire string array to double array throws input format exception, but converting single elements works fine
I'm trying to convert a string array (which I populated from a .txt file) to a double array in C#. This is what I've tried, using a for loop, w...
asked 4 months ago
0 votes
0 replies
Convert List<dynamic> to List<T>
Given the following function, how do I convert from List<dynamic> back to List<T> ? The line var retval = (IEnumerable<T>)Conv...
asked 5 months ago
0 votes
1 replies
Adding a parameter in SSRS Report Builder with string/varchar values but field in SQL is numeric
I have a report I am trying to add a parameter for in Report Builder but am having issues with exactly what I need to do to pass through the sele...
0 votes
0 replies
How to convert HDF5 format to edf files?
I am looking for an efficient way of converting the data from HDF5 files into EDF files with Matlab. Can someone give me some suggestions on how...
2 votes
3 replies
C - what is array name when not converted to pointer of its type?
So for a while I was confused about array names and pointers. We declare int a[10]; And somewhere down the road also have a and &a. So I ge...
asked 5 months ago
2 votes
1 replies
SSIS: Convert datatypes in a SOQL query for a SSMS validation table
I am working on an EDW that is using SSIS to bring in SalesForce tables. I'm in the process of writing a validation query on the CData Salesforce...
0 votes
1 replies
Meaning of specific MATLAB instruction num2str
I have been sent some complete MATLAB script. It appears that author of this code has made a specific instruction using num2str and set_param . W...
1 votes
0 replies
Problem on type-conversion with string in int and float
I am a beginer in monodevelop and i try to make a simple calculator but I have a problem with the equal button which do the type-conversion. So m...
asked 5 months ago
1 votes
5 replies
Having trouble converting object into array
I am trying to convert an object into an array in js. i tried a number of things see below. nothing works. var obj = [{"date":"1527206400","L"...
0 votes
1 replies
What is a good way to prevent overflows when converting float to bigint in Python?
When trimming large decimals resulting from divisions I am getting an overflow problem. E.g.: >>> from math import floor >>>...
-1 votes
1 replies
Convert 32-bit signed integer to 64-bit integer while preserving the exact bits
I have a 32-bit value that is stored in the VB.Net type Integer (i.e. Int32.) I am only interested in the bits - not the numerical value. Somet...
asked 5 months ago
2 votes
2 replies
Replace Column Value in Pandas
I have a column 'Height' in Dataset as below. Height 0 6-2 1 6-6 2 6-5 3 6-5 4 6-10 5 6-9 6 6-8 7...