@abaplint/runtime
Version:
Transpiler - Runtime
24 lines (23 loc) • 963 B
TypeScript
import { Hex } from "./hex";
import { ICharacter } from "./_character";
import { INumeric } from "./_numeric";
export declare class Float {
private value;
private integerCalculationType;
private readonly qualifiedName;
constructor(input?: {
qualifiedName?: string;
});
clone(): Float;
/** ABAP calculates in type i if all operands are integers, ie. "3 / 2" is 2. The exact value is
* kept here, so assigning to a float or packed target, which raises the calculation type, still
* gives the exact result. Consumers without a target type must use getCalculationValue() */
setIntegerCalculationType(): Float;
/** value as seen by the calculation type, ie. rounded if the calculation type is integer */
getCalculationValue(): number;
getQualifiedName(): string | undefined;
set(value: INumeric | ICharacter | Hex | string | number): this;
clear(): void;
getRaw(): number;
get(): string;
}