iOS AILinkBleSDK - 蓝牙SDK
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

ELHeightAlgorithmusModel.h 1.2KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // ELHeightAlgorithmusModel.h
  3. // Elink
  4. //
  5. // Created by iot_user on 2020/6/9.
  6. // Copyright © 2020 iot_iMac. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "ELSDKHeader.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. //inch转cm的系数
  12. extern double const ELHeight_INCH_CM_CONST;
  13. //feet转inch的系数
  14. extern double const ELHeight_FEET_INCH_CONST;
  15. extern NSString *const ELHeightFeetSymbol;
  16. extern NSString *const ELHeightInchSymbol;
  17. @interface ELHeightAlgorithmusModel : NSObject
  18. /// 获取身高显示值
  19. /// @param targetUnit 要显示的单位
  20. /// @param origHeightShow 原来的显示数据
  21. /// @param origHeightUnit 原来数据的单位
  22. /// @param origHeightPoint 原来的数据小数点
  23. + (NSString *)getHeightShowStrWithTargetUnit:(ELDeviceHeightUnit)targetUnit origHeightShow:(NSString *)origHeightShow origHeightUnit:(ELDeviceHeightUnit)origHeightUnit origHeightPoint:(NSUInteger)origHeightPoint;
  24. /// 获取身高(CM)
  25. /// @param heightShow 原有数据
  26. /// @param unit 原有数据单位
  27. /// @param point 小数点
  28. + (NSString *)getCmWithHeightShowStr:(NSString *)heightShow heightUnit:(ELDeviceHeightUnit)unit heightPoint:(NSUInteger)point;
  29. @end
  30. NS_ASSUME_NONNULL_END