Decimal.insert
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.hl7.fhir.utilities.ucum.Decimal.insert(Showing top 10 results out of 315)

origin: jamesagnew/hapi-fhir

public String asDecimal() {
  String result = digits;
  if (decimal != digits.length())
    if (decimal < 0)
      result = "0."+stringMultiply('0', 0-decimal)+digits;
    else if (decimal < result.length())
      if (decimal == 0) 
        result = "0."+result;
      else
        result = insert(".", result, decimal);
    else
      result = result + stringMultiply('0', decimal - result.length());
  if (negative && !allZeros(result, 0))
    result = "-" + result;
  return result;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-utilities

 public String asScientific() {
  String result = digits;
  boolean zero = allZeros(result, 0);
  if (zero) {
   if (precision < 2)
    result = "0e0";
   else
    result = "0."+stringMultiply('0', precision-1)+"e0";
  } else {
   if (digits.length() > 1)
    result = insert(".", result, 1);
   result = result + 'e'+Integer.toString(decimal - 1);
  }
  if (negative && !zero)
   result = '-' + result;
  return result;
}
origin: jamesagnew/hapi-fhir

 throw new Error("Unhandled");
else if (max < s3.length())
 s3 = insert(".", s3, max);
else
 throw new Error("Unhandled");
origin: ca.uhn.hapi.fhir/hapi-fhir-utilities

for (int j = s1.length() - 1; j >= 0; j--) {
  t = c + (dig(s1.charAt(j)) * dig(s2.charAt(i)));
  s[i] = insert(String.valueOf(cdig(t % 10)), s[i], 0);
  c = t / 10;
  s[i] = insert(String.valueOf(cdig(t % 10)), s[i], 0);
  c = t / 10;
for (int j = 0; j < s.length; j++) 
  c = c + dig(s[j].charAt(i));
res = insert(String.valueOf(cdig(c %10)), res, 0);
c = c / 10;
origin: ca.uhn.hapi.fhir/hapi-fhir-utilities

 throw new Error("Unhandled");
else if (max < s3.length())
 s3 = insert(".", s3, max);
else
 throw new Error("Unhandled");
origin: ca.uhn.hapi.fhir/hapi-fhir-utilities

public String asDecimal() {
  String result = digits;
  if (decimal != digits.length())
    if (decimal < 0)
      result = "0."+stringMultiply('0', 0-decimal)+digits;
    else if (decimal < result.length())
      if (decimal == 0) 
        result = "0."+result;
      else
        result = insert(".", result, decimal);
    else
      result = result + stringMultiply('0', decimal - result.length());
  if (negative && !allZeros(result, 0))
    result = "-" + result;
  return result;
}
origin: jamesagnew/hapi-fhir

 public String asScientific() {
  String result = digits;
  boolean zero = allZeros(result, 0);
  if (zero) {
   if (precision < 2)
    result = "0e0";
   else
    result = "0."+stringMultiply('0', precision-1)+"e0";
  } else {
   if (digits.length() > 1)
    result = insert(".", result, 1);
   result = result + 'e'+Integer.toString(decimal - 1);
  }
  if (negative && !zero)
   result = '-' + result;
  return result;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-utilities

 throw new Error("Unhandled");
else if (max < s3.length())
 s3 = insert(".", s3, max);
else
 throw new Error("Unhandled");
origin: jamesagnew/hapi-fhir

 throw new Error("Unhandled");
else if (max < s3.length())
 s3 = insert(".", s3, max);
else
 throw new Error("Unhandled");
origin: jamesagnew/hapi-fhir

for (int j = s1.length() - 1; j >= 0; j--) {
  t = c + (dig(s1.charAt(j)) * dig(s2.charAt(i)));
  s[i] = insert(String.valueOf(cdig(t % 10)), s[i], 0);
  c = t / 10;
  s[i] = insert(String.valueOf(cdig(t % 10)), s[i], 0);
  c = t / 10;
for (int j = 0; j < s.length; j++) 
  c = c + dig(s[j].charAt(i));
res = insert(String.valueOf(cdig(c %10)), res, 0);
c = c / 10;
org.hl7.fhir.utilities.ucumDecimalinsert

Popular methods of Decimal

  • <init>
    There are a few circumstances where a simple value is known to be correct to a high precision. For i
  • asDecimal
  • divInt
  • divide
  • modulo
  • absolute
  • add
  • allZeros
  • asInteger
  • asScientific
  • cdig
  • comparesTo
  • cdig,
  • comparesTo,
  • copy,
  • countSignificants,
  • delete,
  • dig,
  • doAdd,
  • doSubtract,
  • format

Popular classes and methods

  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • getOriginalFilename (MultipartFile)
  • setContentView (Activity)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ArrayList (java.util)
    Resizable-array implementation of the List interface.
  • Collections (java.util)
    Collections contains static methods which operate on Collection classes.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)