public static interface RealRepresentation.Cutter
Cutter is used to shorten numbers.
This can either be done by cutting, by rounding or somenthing else.| Modifier and Type | Method and Description |
|---|---|
String |
cut(String str,
int len)
Returns a substring of
str
with length len or throws an exception. |
String cut(String str, int len)
str
with length len or throws an exception.str - a String with str.length() >= len.len - the desired length of the resulting string.str with length len.RuntimeException - by need if the cut is not allowed.Copyright © 2012–2018 Simuline Organization (l2r). All rights reserved.