SOME ISSUES RELATED TO THE DOMAIN AND ACCURACY OF THE NUMERICAL PRIMITIVE DATA TYPES IN JAVA THAT CAN BE AVOIDED USING OBJECTS BASED ON THE BigInteger AND BigDecimal CLASSES

Tiberiu Alexandru Alexandru, ANTAL

Abstract


The paper aims to present the possibilities of the Java language to give up the primitive types, existing in most imperative programming languages and replace them with a group of predefined analog classes that work in the case of integer numbers with arbitrary precision (BigInteger) or in the case of real numbers with arbitrary precision decimal numbers (BigDecimal). Specific examples are presented to describe how to work with these special classes compared to equivalent primitive types and the results returned by them.


Full Text:

PDF

References


Antal, Tiberiu Alexandru. Visual BASIC pentru ingineri. Risoprint, 2003, p. 244, ISBN 973‐656‐514‐9.

ANTAL, T. A., Elemente de Java cu JDeveloper - îndrumător de laborator, Editura UTPRES, 2013, p.150, ISBN: 978-973-662-827-6.

ANTAL, T. A., Java - Iniţiere - îndrumător de laborator, Editura UTPRES, 2013, p. 246, ISBN: 978-973-662-832-0.

https://docs.oracle.com/en/java/javase/12/ docs/api/java.base/java/math/BigDecimal.html#divide(java.math.BigDecimal,int,int).

Husty, M., Birlescu, I., Tucan, P., Vaida, C., Pisla, D.: An algebraic parameterization approach for parallel robots analysis, Mechanism and Machine Theory, vol. 140, pp. 245-257, 2019.

Tarnita, D., Pisla, D,. Geonea, I., Vaida, C., Catana, M., Tarnita D.N.: Static and Dynamic Analysis of Osteoarthritic and Orthotic Human Knee, Journal of Bionic Engineering, vol. 16(3), pp. 514-525, 2019.

Pisla, D., Plitea, N., Vaida, C. (c.a.), Hesselbach, J., Raatz, A., Vlad, L., Graur, F., PARAMIS Parallel Robot for Laparoscopic Surgery, (2010), Chirurgia 105(5), pp. 677-683.

Tucan, P., Vaida, C., Plitea, N., Pisla, A., Carbone, G., Pisla, D.: Risk-Based Assessment Engineering of a Parallel Robot Used in Post-Stroke Upper Limb Rehabilitation, Sustainability, vol. 11(10), 2893, 2019


Refbacks

  • There are currently no refbacks.


JOURNAL INDEXED IN :