Questions tagged as 'tipagem'

3
answers

Assign type to parameters

Is it possible to assign types to the parameters in functions in PHP? Example: public function random(int $length) { // ... }     
asked by 07.03.2015 / 23:30
3
answers

What are the appropriate data types for columns like address, email, phone, and mobile for SQL database?

What kind of data is recommended to create the following fields: address, email, cell / phone number?     
asked by 04.02.2014 / 20:13
1
answer

Should I use the types ushort, uint and ulong whenever the number is equal to or greater than 0?

Is it a good practice or is there something from Microsoft recommending the use of ushort , uint and ulong whenever I am sure the value will be equal to or greater than 0? Can I gain some advantage by using them instead of...
asked by 19.03.2018 / 00:10
1
answer

Why can unboxing only be done for the type that was previously boxed?

I've been researching why there are unboxing and boxing , the answers I found say that there are value types in> reference types , for example in non-generic lists ArrayList . So is it correct to say that unboxing / Int32 doe...
asked by 17.07.2017 / 00:36
2
answers

What data types exist in MySQL for texts?

What data types exist in MySQL? What is best for storing long texts? (for example in the form of HTML) Why?     
asked by 08.08.2015 / 03:57
1
answer

What is type juggling?

What does the term type juggling refer to? Is it related to dynamic typing languages such as PHP and JavaScript?     
asked by 17.12.2018 / 22:30
1
answer

What is the advantage of using the ENUM type?

When I use type ENUM because until today where I saw this type being used it could be replaced with VARCHAR or even with a simple CHAR , I can not see a case where it really is needed ? A practical example would be useful.  ...
asked by 21.08.2015 / 13:01
3
answers

How to divide integers and get value with decimal part?

I'm trying to divide the following values into C #: Double media = 0.0; int soma = 7; int cont = 2; media = soma / cont; You are returning 3 .     
asked by 10.07.2017 / 15:51
2
answers

What kind of data (double, float) should I use when representing a temperature?

My question is regarding the use of Double and Float in Java exercises when having to declare a temperature (Celsius scale). Which one should I use in this case? I declare as Double , but the teacher correcting the exercis...
asked by 07.09.2018 / 21:00
3
answers

Using non-primitive variable type in C # can affect performance?

Using non-primitive variable type in C # can affect performance? I've seen a lot of code in which, instead of using primitive C # types, many use types similar to other languages that IDE supports. I already questioned a programmer why he...
asked by 30.01.2014 / 19:07