round
MAPM round(int toDigits) const
extern double round(double x);
syncEnd = round(syncStart + syncLength, constraints.resolution);
syncStart = round(syncStart, constraints.resolution);
display = round(display, constraints.resolution);
total = round(total, constraints.resolution);
return (int)round(sysInfo->ignored_pages * B_PAGE_SIZE / 1048576.0);
return (int)round(sysInfo->max_pages * B_PAGE_SIZE / 1048576.0);
return (int)round(sysInfo->used_pages * B_PAGE_SIZE / 1048576.0);
bool round = true;
if (message->FindBool("fPositionControl", &round)
} else if (message->FindBool("fOffsetControl", &round)
} else if (message->FindBool("fFileOffsetControl", &round)
if (round)
G = round(fMarkerPosition.x / width * 255.0);
B = round(255.0 - fMarkerPosition.y / height * 255.0);
R = round(fMarkerPosition.x / width * 255.0);
B = round(255.0 - fMarkerPosition.y / height * 255.0);
R = round(fMarkerPosition.x / width * 255.0);
G = round(255.0 - fMarkerPosition.y / height * 255.0);
rgb_color color = { (uint8)round(R), (uint8)round(G), (uint8)round(B),
r = round(fixedValue * 255);
g = round(fixedValue * 255);
b = round(fixedValue * 255);
round(r * 255.0),
round(g * 255.0),
round(b * 255.0));
round(r * 255.0),
round(g * 255.0),
round(b * 255.0));
round(r * 255.0),
round(g * 255.0),
round(b * 255.0));
round(r * 255.0),
round(g * 255.0),
round(b * 255.0));
rgb_color color = { (uint8)round(r * 255), (uint8)round(g * 255),
(uint8)round(b * 255), 255 };
color.red = (uint8)round(r * 255.0);
color.green = (uint8)round(g * 255.0);
color.blue = (uint8)round(b * 255.0);
updateRequired |= _SetTextControlValue(0, round(h * 60));
updateRequired |= _SetTextControlValue(1, round(s * 100));
updateRequired |= _SetTextControlValue(2, round(v * 100));
updateRequired |= _SetTextControlValue(3, round(r * 255));
updateRequired |= _SetTextControlValue(4, round(g * 255));
updateRequired |= _SetTextControlValue(5, round(b * 255));
(round(r * 255) << 16) | (round(g * 255) << 8) | round(b * 255));
G = round(fFixedValue1 * 255.0);
B = round(fFixedValue2 * 255.0);
R = round(fFixedValue1 * 255.0);
B = round(fFixedValue2 * 255.0);
R = round(fFixedValue1 * 255.0);
G = round(fFixedValue2 * 255.0);
rgb_color color = { (uint8)round(R), (uint8)round(G), (uint8)round(B),
SetValue(255.0 - round(h / 6.0 * 255.0));
SetValue(255.0 - round(s * 255.0));
SetValue(255.0 - round(v * 255.0));
g = round(fixedValue1 * 255);
b = round(fixedValue2 * 255);
r = round(fixedValue1 * 255);
b = round(fixedValue2 * 255);
r = round(fixedValue1 * 255);
g = round(fixedValue2 * 255);
sprintf(string, " %.0f%%", round(usage));
sprintf(string, " %.0f%%", round(usage));
sprintf(string, "%.0f%%", round(usage));
if (round(tabWidth) == 0)
return BRect(round(fLeft->Value()), round(fTop->Value()),
round(fRight->Value()), round(fBottom->Value()));
fDPI = (int32)round((fWidth / x + fHeight / y) / 2);
*_diagonalInches = round(sqrt(info.width * info.width
extern float round(float n, int32 max);
float deltaToX = round(ownFrame.left - frame.left);
float deltaToY = round(ownFrame.top - frame.top);
float deltaByX = round(ownFrame.right - frame.right);
float deltaByY = round(ownFrame.bottom - frame.bottom);
Painter::_Align(float coord, bool round, bool centerOffset) const
if (round)
Painter::_Align(BPoint* point, bool round, bool centerOffset) const
point->x = _Align(point->x, round, centerOffset);
point->y = _Align(point->y, round, centerOffset);
float _Align(float coord, bool round,
void _Align(BPoint* point, bool round,
float deltaToX = round(frameSAT.left - frame.left);
float deltaToY = round(frameSAT.top - frame.top);
float deltaByX = round(frameSAT.right - frame.right);
float deltaByY = round(frameSAT.bottom - frame.bottom);
unsigned int shifts, round, i, ibit;
for (round = 0; round < 16; round++) {
shifts += key_shifts[round];
ekey->l[round] = kl;
ekey->r[round] = kr;
unsigned int round = 16;
while (round--) {
return round(x);
return round(x);
return round(x);