{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "df8d0506",
   "metadata": {},
   "source": [
    "# 04-12 · float — запись и первые вычисления\n",
    "\n",
    "Практика к разделу [«float — дробные числа»](../../site/chapters/glava-04/04-12-float-osnovy.html)."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "3d3aaf66",
   "metadata": {},
   "source": [
    "## Цель\n",
    "\n",
    "Освоить обычную и научную запись float."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "b3007978",
   "metadata": {},
   "source": [
    "## Рабочий пример"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "fb8afe03",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T10:03:36.163991Z",
     "iopub.status.busy": "2026-08-16T10:03:36.163839Z",
     "iopub.status.idle": "2026-08-16T10:03:36.189837Z",
     "shell.execute_reply": "2026-08-16T10:03:36.189344Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'float'>\n"
     ]
    }
   ],
   "source": [
    "pi = 3.14\n",
    "print(type(pi))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "1471dbff",
   "metadata": {},
   "source": [
    "## Эксперимент 1\n",
    "\n",
    "Научная запись: 1e6 — это сколько?"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "7d4a2579",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T10:03:36.190993Z",
     "iopub.status.busy": "2026-08-16T10:03:36.190885Z",
     "iopub.status.idle": "2026-08-16T10:03:36.193201Z",
     "shell.execute_reply": "2026-08-16T10:03:36.192771Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1000000.0\n",
      "0.0025\n"
     ]
    }
   ],
   "source": [
    "print(1e6)\n",
    "print(2.5e-3)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e3eb448f",
   "metadata": {},
   "source": [
    "## Задание ★ Базовая практика\n",
    "\n",
    "Проверьте, что 10 / 2 — это float, а не int."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "bdeb6942",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T10:03:36.194253Z",
     "iopub.status.busy": "2026-08-16T10:03:36.194147Z",
     "iopub.status.idle": "2026-08-16T10:03:36.196205Z",
     "shell.execute_reply": "2026-08-16T10:03:36.195806Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "5.0\n",
      "<class 'float'>\n"
     ]
    }
   ],
   "source": [
    "result = 10 / 2\n",
    "print(result)\n",
    "print(type(result))"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Cartesian Python 3.14",
   "language": "python",
   "name": "cartesian-python314"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.14.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
