Most voted "conversion" questions
None
Learn more…103 questions
Sort by count of
-
1
votes1
answer487
viewsGet and Set using PROPERTY - Python3
As an apprenticeship of Property, created a small currency converter. See: class converteMoeda(): def __init__(self, dollar=0, real=0): self.dollar = dollar self.real = real def toDollar(self):…
-
1
votes1
answer400
viewsHow to convert this Json to Objects in C#
How to convert this JSON to a C object#? { "Maquinas":{ "Maquina1":[ { "comando":"Get", "enderecoip":"192.168.254.221", "port":"3000", "usuario":"teste", "Senha":"123456" }, {…
-
1
votes2
answers993
viewsHow to convert a string array[] to an integer array int[]
What is a simple way to convert a string[] array to an integer array[] string[] arrayString = new string[] {"10", "20", "30"} To: int[] arrayInt = new int[] {10, 20, 30}…
-
1
votes0
answers70
viewsMask Credit Card with JSF
I would like to mask on the screen the user’s credit card number for this format #######*****####. But when using this Pattern it pushes the numbers to the right and does not replace them. Does…
-
1
votes1
answer60
viewsconvert java projects to Maven
I have some java projects and would like to convert them pro Maven. Is there any command maven for conversion of existing java projects? If I just add the pom.xml it will become a Maven project? I…
-
1
votes0
answers70
viewsInteger conversion in Laravel Controller
I have the following data in the controller: $sheets = printerChange::select('folhas'); $sheetsNew = printerChange::select('folhasnew'); $sheetsCompare = (int)$sheetsNew; if(!is_null($sheetsCompare…
-
1
votes1
answer57
viewsLetter to lowercase conversion gives a numerical result
Which part of this code C++ I’m missing where I need to convert a whole word to lowercase? #include <iostream> #include <stdio.h> #include <stdlib.h> #include <string>…
-
1
votes3
answers58
viewsI cannot convert mongodb files to json in python using bson in python
I am trying to work with data from an online database. I am able to do the requisitions in the right way. But when trying to convert the downloaded data using the bson package, I get a string object…
-
0
votes2
answers1948
viewsConvert seconds to hours in Extjs
I’m looking to convert seconds into hours in Extjs and would like to know if there is a function similar to gmdate("H:i:s", $total) in PHP.
-
0
votes1
answer104
viewsDoc to PDF conversion with Syncfusion dll alters font color
I am converting a DOC document to PDF in VB.Net using Syncfusion dll and you are changing the color of my header. I have in Word Template Blue background and White letter, and is getting Black…
-
0
votes0
answers642
viewsRequesting help in converting to selectOneMenu JSF
Look at the figure; When clicking save it generates this error message on screen, which indicates that it was not possible to use a null converter, saying that there is no null conversion to the…
-
0
votes1
answer797
viewsASCII value for char or Int value for ASCII C
Guys, I need to search for a value found by a rand in a file, I’m having a lot of problems because the rand returns me an integer and to fetch character in a file the fgetc me returns an integer…
-
0
votes1
answer43
viewsData Reception and String Conversion
byte[] ret = new byte[29]; s.Receive(ret); Console.WriteLine("Retorno de Dados" + (System.Text.Encoding.ASCII.GetString(ret).Replace("211",""))); string tex =…
-
0
votes3
answers81
viewsWorking with date and deadline checks
I’m a logical problem in my application. Guys, here’s the thing, in the project module of my system there is a deadline for delivery of the project. I need to know the following. If today’s day is 1…
-
0
votes0
answers58
viewsData Conversion
I am making a program and I would like to know how to save a field that contains only characters, but send to the bank only your code? I am using two tables to save the data and the field I want to…
-
0
votes1
answer41
viewsHow to copy certain Bytes of a Date type in Swift
As an example I android to do what you want to use the following: byte[] byte = ....; byte[] resultado = Arrays.copyOfRange(byte, 1,3); And I intend to do the same but on Swift being that in this…
-
0
votes2
answers1471
viewsTransform object array into only one array
I have a array multiples objects: array(3) { [0]=> object(stdClass)#5750 (2) { ["value"]=> string(16) "[email protected]" ["key"]=> string(18) "email_client" } [1]=> object(stdClass)#5254…
-
0
votes1
answer1256
viewsHow to format`Datetime? ` in dd/mm/yyyy format using Linq?
I have the query below, but while trying to format the field Data_nascimento and Data_exclusao with the .ToString("dd/MM/yyyy") returns me to an error at runtime. The 'System.String…
-
0
votes3
answers707
viewsFormatting dates for display and storage
In this Android app, I have a date field in the SQLITE database table, thus defined: String createTable = "CREATE TABLE " + TABLE_RUNS + " ( " + _ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " +…
-
0
votes3
answers5991
viewsConvert number to string to two decimal places
Imagine a string with the following value: 12,126456 How do I convert the string to 12.12? I need to convert, using C#, so that the final string has at most two digits after the comma. tried the…
-
0
votes0
answers412
viewsConverse between Decimals and Binaries in a vector, with randomly generated elements
I need to make a program where 10 randomly generated numbers that are stored in a vector are converted to binary and shown to the user. Not necessarily will need to be stored in a vector. I just…
-
0
votes1
answer46
viewsTransforming image into video
Good morning guys, I’m going to start developing an app and I need to turn a sequence of images into a video. I would like a hint of how this can be done, independent of language, framework, etc. I…
-
0
votes0
answers69
viewsCalculate Values in Gaps in Form
Good afternoon! I’m having doubts about implementing an algorithm that can calculate the heat flow based on the formulas: q=ΔT/Rt ΔT=Temperatureinitial-Temperaturefinal Rt(Thermal…
-
0
votes1
answer368
viewsFormatting of float types
I did a little research before I asked, can you tell me why it doesn’t show 2,500 on the way out, but 2.5 salario=float(input("Digite seu salario")) print(salario)
-
0
votes1
answer858
viewsConvert to decimal without adding zeros - SQL Server
I am converting a number from varchar to decimal. This number already has the boxes after the comma, and when I convert it adds 2 more zeros. Example: 12.345,67 ---> 1234567,00 The code I’m using…
-
0
votes1
answer1118
viewsDecimal to binary conversion in C language using ASCII table
I have to make a program that reads some characters and "transform" each character into its corresponding number in the ASCII table and then turn that number into binary and store it in an array. My…
-
0
votes2
answers35
viewsCreate a grouped query by month
I have a field in my database (dt_nf) that is DATE type. I would like to do a query that groups not by date, but by month and year, but I’m not getting it. My code is like this: SELECT…
-
0
votes1
answer24
viewsError writing in SQL table from Windowsform
I’m trying to write several fields in a table from a Windows Form App. Some of these fields are Foreign Keys from other tables. If the fields have values, the SQL statement is executed but if they…
-
0
votes0
answers21
viewsHow to format field with a mask defined in Java
How I can format an int field to string the following way: Campo int: 62016 final field a string that has to stand "062016"
-
0
votes0
answers133
viewsR - How to convert all columns of a data.table encoding?
Hello ! I’ve been through the documentation data.table() , but I still can’t fully understand. How would this function, for a dt ? for(i in 1:ncol(df1)) { df1[,i] <- df1[,i] %>% iconv(from =…
-
0
votes1
answer146
viewsSerial Communication and Array Division with Comma
Hello, Good Night, today I came up with another problem, reading data generated by sensors of the Arduino, I was able to print them and save them in an array, but to really get good, I need to break…
-
0
votes1
answer146
viewsConvert . py files to . exe files
Hello, can anyone explain me how to convert an application in . py to . exe format and run in windows? I tried to use cx_freeze but could not. Is there any way to create a converter? Thanks.
-
0
votes0
answers26
viewserror conversion from array to int in c language
Could someone help me understand what error I am making in this conversion. because any digit to print the last characters of the variable key_temp, key_temp2 or key, he is printing ' 0'. // copies…
-
0
votes0
answers22
viewsConversion of date to select
I have a little problem regarding the command I am using to create a report using the postgresql, this is the command: select DTNASCIMENTO from FRONT.CONTATO where contato.dtnascimento::DATE =…
-
0
votes2
answers32
viewsI need to do a data conversation of 2 different tables
good afternoon everyone, here me again to ask a question that for many is basic but I really don’t know how to do so come on. I have 2 tables originally in Paradox, I converted both to Firebird to…
-
0
votes1
answer69
viewsSegmentation failure (recorded core image) decimal to binary conversion
#include <stdio.h> int main() { int d; int bits = 8; int vetor[bits]; int a = bits - 1; int b = a; scanf("%d", &d); if(d >= 2) { while(d/2 > 0){ vetor[a] = b % 2; b /= 2; a--; b--; }…
-
0
votes1
answer76
viewsHow does a car class in Java convert to C++?
public class Carro { private String nome; private int ano; private String modelo; private String marca; private String combustivel; private Double valor; public String getNome() { return nome; }…
-
0
votes1
answer18
viewsHow to "rebuild" a file from the buffer stored in the database?
I’m in great doubt. I upload files and receive them on a Node server with the help of middleware multer, the data comes something like this: Then I take this file and save in the database the result…
-
0
votes0
answers33
viewsDoubt in stdin flow of scanf() function
Greetings to all. I am a beginner in C and I came across the following question regarding data entry; int number1,number2; printf("Digite o numero : "); scanf("%d",&number1); printf("Digite…
-
0
votes2
answers486
viewsConversion from comma to java point
I’m having a hard time getting my own getPreco() be formatted. The input of the data is by means of a textField. if (radioGuitar.isSelected()) { Guitarra guitarra = new Guitarra();…
-
0
votes1
answer54
viewsSyntax Error (Phyton)
I am doing a work here with python using Pandas/Matplotlib/Seaborn/Numpy and wanted to understand why it gave syntax error. I’m trying to modify 3 columns of my dataset if String for Date Time.…
-
-1
votes1
answer106
viewsField validation
How could I validate the fields below so they don’t go blank, because my biggest difficulty is that two of them have Convert. NegocioFuncionario neg = new NegocioFuncionario(); EntidadeFuncionario…
-
-1
votes2
answers1715
viewsReturn entire part in Javascript
What’s the difference of these methods in Javascript? console.log(parseInt(3.3)); console.log(parseInt(3.7)); console.log(Math.floor(3.3)); console.log(Math.floor(3.7));…
-
-1
votes1
answer292
viewsConvert 1.0 (string) to 1.0 (double) in c#
Good evening, everyone, I am trying to solve a challenge in C# but when I try to convert two variable string with point (Ex. 1.0 7.0) to two double variables, loses the point and is 10 70. Can…
-
-1
votes1
answer33
viewsConvert a string to number
I am reading in an excel file, but the values of them are coming in this format. "-3,6379788070917E-12" Code for conversion from string to decimal. decimal.Parse(linha[5]); When I do the error…
-
-1
votes1
answer76
viewsImplementing function of type Month
Good morning guys blz? was implementing a Month type function that returns Month I tried to use static_cast to convert to Month type but from conversion errors to same. The program is this below:…
-
-1
votes1
answer237
viewsConverting list to float array
I am working on an import of data, which are in format, as in the example: [-2.814285863362681, -2.814158589901394, -2.8123844084634873] [-2.874285863362681, -2.054158589901394, -2.6523844084634873]…
-
-1
votes1
answer198
viewsArray Creation in Kotlin : No value passed for Parameter array [init]
kotlin array Converti um código de java para kotlin, porém está com um erro que não consigo resolver Here is the java code public class IntroActivity extends AppCompatActivity { private ViewPager…
-
-2
votes1
answer49
viewsCall conversion from Java to Kotlin
I’m creating an app that will have a main Activity and some interspersed Fragments, in this case I’m trying to release a fragment_main but I can’t get this Java code to become Koltin code:…
-
-2
votes1
answer889
viewsConvert string to json [Python]
I have a case where I have a json(is like clob) in the database and I want to use it to make a post request and everything by python, but I have a problem at the time of converting this string to…