Type conversion is the way of implicitly or explicitly changing an entity of one data type into another. This is done to take advantage of certain features of type hierarchies or type representations.

learn more…| top users | synonyms (2)

0
votes
1answer
22 views

16 byte unsigned char array as a number?

I am doing some cryptography with 128bit keys which necessitates using 16byte data chunks which I am storing as 16 byte unsigned char arrays.unsigned char nonce_counter[16]="xCv6Jk0neeV5GoSZ";I ...
0
votes
2answers
32 views

Error in converting datas from string to int

I have a dataframe cleaned_bp['VISITCODE'] which looks like: 0 11 22 33 64 95 126 15where the non-index column consists of ...
1
vote
3answers
44 views

Is type.isSubclassOf(Type otherType) cached or do I have to do that myself?

simple Question:is type.isSubclassOf(Type otherType) somewhere cached as a let's say Dictionary<Tuple<Type, Type>, bool>?If not, how expensive is such a call?I'm quite often checking ...
0
votes
1answer
20 views

How convert type of value in Visual Prolog 8?

I need convert string to ACII add 1 and convert back. Next_letter=convert(char, convert(integer, Letter) + 1)But error:main.pro(19,48) error c504 : The expression has type 'main::letter',...
0
votes
1answer
42 views

What should I use instead of -Wconversion?

I'm introducing new types in my program, such as tileno_i, pageno_i and blockno_u where I used to have only int or unsigned, the idea being to communicate more clearly what sort of value a function ...
-3
votes
1answer
37 views

How unions are used to avoid type coversion [duplicate]

I am reading The C++ Programming Language by Bjarne Stroustrup. It states on unions:"Unions are occasionally used deliberately to avoid type conversion. One might, for example,use a Fudge to find ...
-3
votes
0answers
37 views

Can´t convert .mp4 file to .mjpeg file with ffmpeg

I use ffmpeg to convert a .mp4 file to a .mjpeg file and I fail doing so.What i tried so far:Converting directly from .mp4 to .mjpeg with one of these:"ffmpeg -i input.mp4 output.mjpeg""...
2
votes
4answers
79 views

C# Stream write a Uint array

I have some data containing jagged arrays of uints.The data must be logged fast, so i was thinking of using stream.Write using (var stream=File.Open(Folder + @"\"+Filename, FileMode....
1
vote
1answer
43 views

Transform float to int so that every information is preserved OR how to get the lenght of a long float

In Python, I receive two floats e.g.a=0.123456b=0.012340and a precisionp=0.000001that tells me there will be no digits beyond the 6th decimal of the floats.I want to transform the ...
3
votes
1answer
79 views

Converting any type to any type

I want to have a function template to make arbitrary type conversions possible:template<typename T, typename S>S Convert(const T& input){// code.....}For example:Convert<int, ...
0
votes
1answer
27 views

From whole number to percentage in SQL extract in Power BI

I have to extract data in Power BI using a SQL statement. It is a simple select ... from ... group by ... and then I retrieve for example the value 925. And here is my request. What I want is to ...
1
vote
1answer
49 views

How to marshal JSON with bigints?

I have a json that contains a field with a bigint{"NETWORK_ID": 6000370005980500000071}The format I have before marshaling is map[string]interface{}When I marshal it and print to console ...
-1
votes
4answers
56 views

Unmarshalling array into struct

I'm trying to figure out how I can (using gin) create a struct from an api call"icon": ["https://api.figo.me/assets/images/accounts/postbank.png",{"48x48": "https://api....
1
vote
2answers
31 views

MYSQL warning Invalid utf8 character string

I am trying to use below query to enforce UTF-8 encoding on a column data.SELECT convert(binary convert(summary using latin1) using utf8) FROM blogs b;The below warnings getting logged in mysql ...
2
votes
1answer
46 views

Is it possible to convert table data to similar type using VALUE operator

I think this question is best illustrated with an example. I've got 2 tables of different data types (but table_type1 is easily convertable to table_type2)i_tab1 type table_type1 (fields: matnr,...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,