How to convert a boolean array to an int array?

I use Scilab, and want to convert an array of booleans into an array of integers: >>> x = np.array([4, 3,...

How do I convert Long to byte[] and back in java?

How do I convert a long to a byte[] and back in Java? I'm trying convert a long to a byte[] so that I will be able ...

Converting NVARCHAR(255) to DATE?

I'm trying to transfer some old SQL Server data using Excel into SQL Server. It seems that Import/Export Data applic...

Conversion from Long to Double in Java?

Is there any way to convert a Long data type to Double or double? For example, I need to convert 15552451L to a dou...

C Convert char into char*?

I have a char that is given from fgets, and I would like to know how I can convert it into a char*. I am sure this...

Convert INT to VARCHAR SQL?

I am using Sybase and I am doing a select which returns me a column called "iftype", but its type is int and I need ...

How to cast interface {} to struct?

I was looking for how to cast the interface to a struct, but I do not how I can not do it. I will try to explain my...

Converting integer to digit list?

What is the quickest and cleanest way to convert an integer into a list? For example, change 132 into [1,3,2] and ...

Does one double promote every int in the equation to double??

Does the presence of one floating-point data type (e.g. double) ensure that all +, -, *, /, %, etc math operations a...

please explain this weird behaviour c++ multiplying numbers then mod?

i have less experience with c++ and i code mainly in python. while solving some programming challenge online there w...

How to convert Nvarchar column to INT?

I have a nvarchar column in one of my tables. Now I need to convert that column values to INT type.. I have tried...

Convert integer to hexadecimal and back again?

How can I convert the following? 2934 (integer) to B76 (hex) Let me explain what I am trying to do. I have User...

How do I check if a string is a number (float)??

What is the best possible way to check if a string can be represented as a number in Python? The function I curren...