MathUtil2.java 577 B

123456789101112131415161718192021222324252627282930
  1. package com.huimv.env.common.utils;
  2. import org.springframework.stereotype.Component;
  3. /**
  4. * @Project : huimv.shiwan
  5. * @Package : com.huimv.biosafety.uface.controller
  6. * @Description : TODO
  7. * @Version : 1.0
  8. * @Author : ZhuoNing
  9. * @Create : 2020-12-25
  10. **/
  11. @Component
  12. public class MathUtil2 {
  13. //计算温度
  14. public double countTemp(int temp){
  15. return temp * 0.1;
  16. }
  17. //计算湿度
  18. public double countHumi(int temp){
  19. return temp * 0.1;
  20. }
  21. //计算温度
  22. public double countMeter(int temp){
  23. return temp * 0.01;
  24. }
  25. }