Best iOS Apps for Business

Samrat T
Updated on 30-Jul-2019 22:30:24

202 Views

We have laptops, desktops and what not ... But if we can access our business communications on our iPhone nothing like that ...If you are all in on Apple's mobile platform and use an iPad or iPhone, there are some apps that can help you to streamline your business.EmailNote TakingContact ManagementTo-do'sCalendarSave for laterExpense managementAccountingProductivityCloud Storage

Set MySQL Decimal with Accuracy of 10 Digits After the Comma

Ankith Reddy
Updated on 30-Jul-2019 22:30:24

473 Views

As you know the DECIMAL() method takes two parameter. The first parameter tells about the total number of digits and second parameter tells about number of digits after decimal point. Therefore, if you use DECIMAL(10, 10) that means you can use only 10 fractional digit.For Example: Store 0.9999999999 with DECIMAL(20, 10).To understand what we discussed above, let us create a table. The query to create a table is as follows:mysql> create table Decimal_Demo -> ( -> Id int NOT NULL AUTO_INCREMENT, -> Price DECIMAL(20, 10), -> PRIMARY KEY(Id) ... Read More

DecimalFormat 0 and Hash Symbols in Java

Sharon Christine
Updated on 30-Jul-2019 22:30:24

130 Views

DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers. Let us set DecimalFormat("0.######E0") and use the format() method as well −new DecimalFormat("0.######E0").format(298757)Since, we have used DecimalFormat class in Java, therefore importing the following package in a must −import java.text.DecimalFormat;The following is the complete example −Example Live Demoimport java.text.DecimalFormat; public class Demo { public static void main(String[] argv) throws Exception { System.out.println(new DecimalFormat("0.######E0").format(298757)); System.out.println(new DecimalFormat("0.######E0").format(19988)); } }Output2.98757E5 1.9988E4

Convert Long to String using toString Method of Long Class in Java

karthikeya Boyini
Updated on 30-Jul-2019 22:30:24

195 Views

The toString() method gives string representation to a Long. Let’s say we have the following Long object −Long longObj = new Long(70); System.out.println("Long: " + longObj);To convert it to String, the toString() method is used −String myStr = longObj.toString();The following is the complete example −Example Live Demopublic class Demo { public static void main(String[] args) { // Long Long longObj = new Long(70); System.out.println("Long: " + longObj); // conversion String myStr = longObj.toString(); System.out.println("Converted to String: " + myStr); } }OutputLong: 70 Converted to String: 70

Delete Multiple Rows from a Table Using ID in MySQL

Anvi Jain
Updated on 30-Jul-2019 22:30:24

1K+ Views

You can use IN statement to delete more than one rows from a table using id in MySQL. The syntax is as follows −delete from yourTableName where yourColumnName in(value1, value2, .....valueN);To understand the above syntax, let us create a table. The following is the query to create a table.mysql> create table DeleteManyRows    −> (    −> Id int,    −> Name varchar(200),    −> Age int    −> ); Query OK, 0 rows affected (3.35 sec)Insert some records in the table with the help of insert command. The query is as follows −mysql> insert into DeleteManyRows values(1, 'John', 23); ... Read More

Create a Procedure in MySQL with Parameters

Chandu yadav
Updated on 30-Jul-2019 22:30:24

4K+ Views

You can create a parameter using IN and OUT. IN is used to take input parameter and OUT can be used for output.The syntax is as followsDELIMITER // CREATE PROCEDURE yourProcedureName(IN yourParameterName dataType, OUT yourParameterName dataType ) BEGIN yourStatement1; yourStatement2; . . N END; // DELIMITER ;First, we will create a table. The query to create a table is as followsmysql> create table SumOfAll -> ( -> Amount int -> ); Query OK, 0 rows affected (0.78 sec)Insert some records in the table using insert command. The query ... Read More

Career Options for a Post Graduate in Biotech

Madhuparna
Updated on 30-Jul-2019 22:30:24

145 Views

Although India does not yet have a good setup for Biotechnology, there are career options galore after you have completed your post graduate in biotech. Whether you have completed your post-graduation in Biotech from the reputed institutes in India such as, Tata Institute of Fundamental Research or Indian Institute of Science, or from any university situated abroad, it’s a high-level training that matters.According to industry experts like Dr. Yusuf Deeni, post completion of Masters in Biotechnology, one can find employment in biotech companies or can even pursue Ph.D.One can also be a part of biofuels, healthcare, cleantech and industrial biotechnology.For ... Read More

Initializer for Final Static Field in Java

Rishi Raj
Updated on 30-Jul-2019 22:30:24

1K+ Views

The final static field variable is a constant variable. There is only one copy of this variable available. It is mandatory to initialize the final static field variable explicitly as the default value for it is not provided by the JVM. Also, this variable cannot be reinitialized.A program that initializes the final static field variable using a static initialization block is given as follows:Example Live Demopublic class Demo {    final static int num;    static {       System.out.println("Running static initialization block.");       num = 6;    }    public static void main(String[] args) {     ... Read More

Fix MySQL Error 1406: Data Too Long for Column

Arjun Thakur
Updated on 30-Jul-2019 22:30:24

7K+ Views

This error can occur if you try to set data higher than the allowed limit. As an example, you cannot store a string in a column of type bit because varchar or string takes size higher than bit data type.You need to use the following syntax for bit type column:anyBitColumnName= b ‘1’ OR anyBitColumnName= b ‘0’To understand the above syntax, let us create a table. The query to create a table is as follows:mysql> create table IncasesensitiveDemo    -> (    -> Id int NOT NULL AUTO_INCREMENT,    -> Name varchar(10),    -> PRIMARY KEY(Id)    -> ); Query OK, ... Read More

Format Double with New DecimalFormat in Java

karthikeya Boyini
Updated on 30-Jul-2019 22:30:24

188 Views

Firstly, set the double values −double d1 = 1.39876; double d2 = 2.39876; double d3 = 0.66920;Now, format the double values with new DecimalFormat("0.#####E0") −System.out.println(new DecimalFormat("0.#####E0").format(d1)); System.out.println(new DecimalFormat("0.#####E0").format(d2)); System.out.println(new DecimalFormat("0.#####E0").format(d3));The following is an example −Example Live Demoimport java.text.DecimalFormat; public class Demo { public static void main(String[] argv) throws Exception { double d1 = 1.39876; double d2 = 2.39876; double d3 = 0.66920; System.out.println(new DecimalFormat("0.#####E0").format(d1)); System.out.println(new DecimalFormat("0.#####E0").format(d2)); ... Read More

Advertisements