Java Number Round roundBytesUpToWords(int bytes)

Here you can find the source of roundBytesUpToWords(int bytes)

Description

round Bytes Up To Words

License

MIT License

Declaration

static int roundBytesUpToWords(int bytes) 

Method Source Code

//package com.java2s;
// Licensed under the MIT License:

public class Main {
    static int roundBytesUpToWords(int bytes) {
        return (bytes + 7) / 8;
    }//  w  ww .  j av a2  s .c o  m
}

Related

  1. roundAdd(double a, double b)
  2. roundAndCrop(final float x, final int min, final int max)
  3. roundByGridSize(int value)
  4. roundByte(final double value)
  5. roundBytesToGB(long bytes)
  6. roundChipRewardDown(long chips)
  7. roundCss(double v, int n)
  8. rounded(double value, int places, int ceilOrFloor)
  9. ROUNDED_DIV(long a, long b)