Questions tagged as 'tipagem'

1
answer

When to use Supertype or Subtype on return method?

Suppose I have a method called " meuMetodo() " that returns an Object of type ArrayList<String> , I can make this method declare that it returns more concrete or more abstract types:    public ArrayList<String> meu...
asked by 10.05.2017 / 22:08
3
answers

Check if int is "null" in C #

In C # it is not possible to assign null to an integer value ( int , not int? ). However, how can I tell if an integer value ( int ) has not yet had an assigned value (being int )? int? valor; if (valor == nul...
asked by 15.08.2017 / 17:10
1
answer

Why is the expression (double.MinValue == double.MinValue + 1) true?

The following C # code: public class Program { public static void Main(string[] args) { //Your code goes here Console.WriteLine(double.MinValue == double.MinValue + 1); Console.WriteLine(int.MinValue == int.MinV...
asked by 21.09.2017 / 00:25
1
answer

Relation of Java types or another language with processor architecture

In Java you have the primitive types: int and float , which hold a maximum of 32 bits of information, and also have long and double types that hold 64 bits of information. Does this have or could have anything to do...
asked by 01.09.2017 / 16:11
1
answer

What does a double-precision variable mean?

I would like to understand the meaning of a double-precision variable.     
asked by 15.01.2017 / 16:35
1
answer

Rounding as a result of multiplication

I have this scenario:  - do a multiplication of 2 values that will be rounded to 2 boxes for the table that will be inserted its result. Follow the example: CREATE TABLE #TMP ( A DECIMAL(23,6), B DECIMAL(28,2) ) INSERT INTO #TMP VAL...
asked by 05.01.2016 / 20:58
1
answer

How does dynamic typing work in Python 3.x?

I'm new to Python and I had a question when I solved Exercise 1001 of Uri Online (read A and B, assign sum to X and print), when writing the following code, I received concatenation: a = input() b = input() x = a + b print ("x = ", x) Whe...
asked by 19.06.2016 / 19:05
1
answer

What is the difference between the concept of static and dynamic typing and the concept of strongly and weakly typed? [duplicate]

There is some confusion about the concept of programming languages with static and dynamic typing and the concept of strongly and poorly typed programming languages. For example, by my understanding Python is a dynamic typed language...
asked by 06.11.2015 / 15:38
3
answers

Difference between decimal and numeric

The two data types, DECIMAL and NUMERIC , are / can be used to store exact values. For example: Is there any difference between Salario DECIMAL(5,2) and Salario NUMERIC(5,2) in MySQL? Is there a situation that...
asked by 13.03.2015 / 03:28
1
answer

How to define pre-defined types in MySQL?

In the site I'm developing, I'll have, for example, a registration form where the user must define their gender in a combobox (male or female). The users table in the database will have all user fields as string , date , float...
asked by 16.08.2015 / 19:04