<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _09_Binary_Float
{
    class BinaryFloat
    {
        static void Main()
        {
            // input
            float toDisplay = float.Parse(Console.ReadLine());

            // string 
            string toPrint = "";

            string[] BinKey = "0 1".Split(' ');

            for (int i = 0; i < 32; i++)
            {
                
            }

            Console.WriteLine(toPrint);
        }
    }<commit_msg>floatBin workin progress<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _09_Binary_Float
{
    class BinaryFloat
    {
        static void Main()
        {
            // input
            float toDisplayInput = float.Parse(Console.ReadLine());

            float toDisplay = toDisplayInput;
            // string 
            string toPrint = "";

            string[] BinKey = "0 1".Split(' ');

            string BinNumber = "";


            // get nuumber in format 1+ 0.xxxxxxx
            int powCounter = 0;

            while (!(toDisplay >= 1 && toDisplay < 2))
            {
                toDisplay /= 2;
                powCounter++;
            }



            // number part
            // TODO: to binary fraction
            // bits 0 -23
            float Number = toDisplay - 1;

            string NumString = "";

            // end when num = 0 
            // nothing to multiply
            while (Number != 0 &&
                   NumString.Length <= 23)
            {
                // Step 1: Multiply by 2
                Number *= 2;

                if (Number >= 1)          // if result larger than 1
                {                        //
                    NumString += "1";    // add 1
                    Number -= 1;          // remove the int part (1 )
                }                        //
                else                     // if not
                {                        //
                    NumString += "0";    // add 0
                }                        // keep result
            }

            // TODO: to binary
            // bits 30 - 24
            int Power = 127 + powCounter;

            // bit 31 -> 0 positive, 1 negative



            Console.WriteLine(toPrint);
        }
    }
{'fraction_non_alphanumeric': 0.09774127310061602, 'fraction_numerical': 0.019301848049281315, 'mean_word_length': 0.9597747385358005, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6743415', 'n_tokens_mistral': 652, 'n_tokens_neox': 567, 'n_words': 167}