Skip to content

Remove double-conversion dependency from DoubleConversions.cpp (#56110)#56110

Open
christophpurrer wants to merge 2 commits intofacebook:mainfrom
christophpurrer:export-D96082175
Open

Remove double-conversion dependency from DoubleConversions.cpp (#56110)#56110
christophpurrer wants to merge 2 commits intofacebook:mainfrom
christophpurrer:export-D96082175

Conversation

@christophpurrer
Copy link
Contributor

@christophpurrer christophpurrer commented Mar 16, 2026

Summary:

Summary

Removes the double-conversion dependency from DoubleConversions.cpp in the React Native repository.

  • Removed Dependencies: double-conversion/double-conversion.h

Updated Code

  • Modified DoubleConversions.cpp to use standard C++ library headers (cmath and cstdio) instead of double-conversion.

This change aims to reduce dependencies and simplify the codebase. The removed dependency was previously used for string conversion, which has been replaced with standard C++ library functions.

Changelog: [Internal]

Differential Revision: D96082175

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 16, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 16, 2026

@christophpurrer has exported this pull request. If you are a Meta employee, you can view the originating Diff in D96082175.

@meta-codesync meta-codesync bot changed the title Remove double-conversion dependency from DoubleConversions.cpp Remove double-conversion dependency from DoubleConversions.cpp (#56110) Mar 16, 2026
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Mar 16, 2026
…ook#56110)

Summary:

**Summary**

Removes the `double-conversion` dependency from `DoubleConversions.cpp` in the React Native repository.

- Removed Dependencies: `double-conversion/double-conversion.h`

 Updated Code

* Modified `DoubleConversions.cpp` to use standard C++ library headers (`cmath` and `cstdio`) instead of `double-conversion`.

This change aims to reduce dependencies and simplify the codebase. The removed dependency was previously used for string conversion, which has been replaced with standard C++ library functions.

Changelog: [Internal]

Differential Revision: D96082175
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Mar 16, 2026
…ook#56110)

Summary:
Pull Request resolved: facebook#56110

**Summary**

Removes the `double-conversion` dependency from `DoubleConversions.cpp` in the React Native repository.

- Removed Dependencies: `double-conversion/double-conversion.h`

 Updated Code

* Modified `DoubleConversions.cpp` to use standard C++ library headers (`cmath` and `cstdio`) instead of `double-conversion`.

This change aims to reduce dependencies and simplify the codebase. The removed dependency was previously used for string conversion, which has been replaced with standard C++ library functions.

Changelog: [Internal]

Differential Revision: D96082175
Summary:
Add comprehensive unit tests for the `toString(double, char)` function in `DoubleConversions.cpp`. The tests cover:
- Zero and negative zero
- Positive and negative integers
- Fractional values
- Very small and very large values
- Scientific notation for values below 1e-6
- Infinity and NaN serialization as "0"
- Suffix character appending (including null suffix)
- Suffix behavior with special values (infinity, NaN)

Changelog: [Internal]

Differential Revision: D96625901
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Mar 16, 2026
…ook#56110)

Summary:

**Summary**

Removes the `double-conversion` dependency from `DoubleConversions.cpp` in the React Native repository.

- Removed Dependencies: `double-conversion/double-conversion.h`

 Updated Code

* Modified `DoubleConversions.cpp` to use standard C++ library headers (`cmath` and `cstdio`) instead of `double-conversion`.

This change aims to reduce dependencies and simplify the codebase. The removed dependency was previously used for string conversion, which has been replaced with standard C++ library functions.

Changelog: [Internal]

Differential Revision: D96082175
…ook#56110)

Summary:
Pull Request resolved: facebook#56110

**Summary**

Removes the `double-conversion` dependency from `DoubleConversions.cpp` in the React Native repository.

- Removed Dependencies: `double-conversion/double-conversion.h`

 Updated Code

* Modified `DoubleConversions.cpp` to use standard C++ library headers (`cmath` and `cstdio`) instead of `double-conversion`.

This change aims to reduce dependencies and simplify the codebase. The removed dependency was previously used for string conversion, which has been replaced with standard C++ library functions.

Changelog: [Internal]

Differential Revision: D96082175
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant