# Maths **Repository Path**: CodexploRe/Maths ## Basic Information - **Project Name**: Maths - **Description**: 这是本人的包(ChenUtils)中的其中一个模块。该模块收录了本人对在大学学习过程中遇到的比较复杂的计算逻辑的代码实现,以便于快速验证自己计算的正确与否。 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-09-23 - **Last Updated**: 2023-10-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Maths ## Introduction This is one of the packages in my bag (ChenUtils). This package includes my code implementation of the more complex calculation logic encountered in the process of university study, so as to quickly verify the correctness of my calculations. For more information about the ChenUtils package, please visit [My Project Address](https://pypi.org/project/ChenUtils/). ## Import the package Please use the cmd command line window to run the following command, before making sure you have the Python runtime environment and pip tool: ```cmd pip install ChenUtils ``` Then use the 'from ChenUtils.Maths import' statement in the python environment to get the functionality you need. ## Instructions for use - f2bin2ieee.py This module provides functions for converting floating-point decimals, binary decimals, and 32-bit IEEE754-formatted floating-point numbers to and from each other, with the following usage examples: ```python from ChenUtils.Maths.flt2ieee754 import flt2bin, flt2ieee754, bin2flt, bin2ieee754, ieee7542flt, ieee7542bin print(flt2bin(11.375)) print(flt2ieee754(11.375)) print(bin2flt('1011.011B')) print(bin2ieee754('1011.011B')) print(ieee7542flt('41360000H')) print(ieee7542bin('41360000H')) ``` The output is as follows: ```python 1011.011B 41360000H 11.375 41360000H 11.375 1011.011B ```