• Register

Recent posts tagged conversion

6 0 1 min.
Here we study about a program to convert decimal to binary in javaWe can convert decimal to binary in java using Integer.toBinaryString() method or custom logic. The signature of toBinaryString() method is give...
posted 1 hour ago Jeevani 278 points
32 1 2 min.
In C#, Array and string both are the reference type instead of value-type. By following the rule of the polymorphism, a cast operation between reference types doesn't change the run-time sort of the underlying object, it only changes the sort of ...
posted Jun 2 mhfaisal 262 points
22 1 1 min.
When you assign value of 1 data type to a different , the 2 types won't be compatible with one another . If the info types are compatible, then Java will perform the conversion automatically referred to as Automatic Type Conversion and if not the...
posted Jun 2 mhfaisal 262 points
3 0 2 min.
In C#, implicit conversion have no special syntax is required because the conversion always succeeds and no data will be lost. When an integer going to converted in boolean, any value except 0 has considered as true and 0 has considered as false. So ...
posted May 10 mhfaisal 262 points
3 1 3 min.
Hence C# is statically-typed at build time, after a variable is declred once, it can't be declared again or assigned a worth of another type unless that type is implicitly convertible to the variable's type. For example, the string can't ...
posted May 6 mhfaisal 262 points
3 0 1 min.
Explanation of problemIn C#, System namespace provide Convert class with definations of all possible conversation of data from one type to another. Most commony conversion performs between string to another type. Every type have an standard format so...
posted May 5 mhfaisal 262 points
3 0 1 min.
Explanation of problemIn C#, double is a built-in-type what consider as value-type where string is referance-type. Hence by defination all value-type should be non-nullable and have a default value, where all referance-type have a default value of nu...
posted May 5 mhfaisal 262 points
0 0 1 min.
In this article, we will learn about the conversion of a double to a String in java by using Sting.valueOf(double) method. This is a more efficient method to use while converting a double to a string.Methods/techniquesOne may find out a different log...
posted Oct 27, 2020 MallikaShaik672 500 points
0 0 2 min.
In this article, we are going to study, how to convert long to int in java in two different ways. So in order to convert from one data type to another we use a technique called typecasting.Long to Int?We need to perform typecasting or the explicit ca...
posted Oct 22, 2020 MallikaShaik672 500 points
0 0 2 min.
In this article, I am going to explain how to convert a string to a string array which means a character array. Here we are converting a string into its character array using a pre-defined function.ApproachHere create a normal java project and I have...
posted Oct 22, 2020 MallikaShaik672 500 points
0 0 4 min.
The PDF format is very useful for downloading data in bulk in a web application. Helps users download dynamic content in file form for offline use. With the export to PDF function, the HTML content is converted into a PDF document so that it can be d...
posted Oct 18, 2020 amna 112,545 points
0 0 3 min.
Summary: solve a basic exercise of C for the conversion of temperatures, in which the formula of conversion from degrees Fahrenheit to Celsius and the conversion from Celsius to Fahrenheit is implemented.Table of contents:The formulas.Convert Ce...
posted Oct 6, 2020 amna 112,545 points
0 0 1 min.
There are times when we have to convert int to string. In this article we are going to look at methods to convert int to string.MethodsUsing string streamsUsing to_string Using to_stringto_string() function converts int to string by taking the n...
posted Jul 13, 2020 Lalit Kumar 1,240 points
0 0 3 min.
In this article, we are going to learn how to convert char to string in C++There are two things in this conversion, I mean you can convert a single character and also the array of char to string. But in this article, we are going to learn both of the...
posted May 12, 2020 Lalit Kumar 1,240 points
0 0 2 min.
In this article, we are going to learn how to convert string to char. What will happen when we convert string to char? It will return an array containing a sequence of characters as in string. There are many ways to convert string to char and those a...
posted May 10, 2020 Lalit Kumar 1,240 points
0 0 1 min.
In today’s blog, we are going to discuss another program. This program is about how to convert uppercase letters to lowercase in a string. As usual, we will follow the baby steps.AlgorithmDefine it as a string of definite size.Take input from t...
posted Apr 23, 2020 Lalit Kumar 1,240 points
6 0 2 min.
C++ invalid conversion from const char* to charA single constant char can only store one byte; it means one letter of the alphabet, not the whole string. If you try to do it, it will encounter errors.  All you are doing is attempting to add the ...
posted Apr 19, 2020 Lalit Kumar 1,240 points
To see more, click for the full list of questions or popular tags.