Czy można łatwo skonwertować z double na char ? np mając liczbę 2.555 po konwersji będą znaki tj 2 . 5 5 5

- Rejestracja:ponad 11 lat
- Ostatnio:4 miesiące
- Postów:181

- Rejestracja:ponad 11 lat
- Ostatnio:ponad rok
- Postów:1340
2
Render125 napisał(a):
@.__.: A co jeśli nie wiem jak długa będzie liczba double ?
std::numeric_limits<double>::max_digits10
The value of std::numeric_limits<T>::max_digits10 is the number of base-10 digits that are necessary to uniquely represent all distinct values of the type T, such as necessary for serialization/deserialization to text. This constant is meaningful for all floating-point types.
Zarejestruj się i dołącz do największej społeczności programistów w Polsce.
Otrzymaj wsparcie, dziel się wiedzą i rozwijaj swoje umiejętności z najlepszymi.