Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while using math.h in c #213060

Closed
CoderDebapriyaDasPurkayastha opened this issue May 20, 2024 · 1 comment
Closed

Error while using math.h in c #213060

CoderDebapriyaDasPurkayastha opened this issue May 20, 2024 · 1 comment
Assignees

Comments

@CoderDebapriyaDasPurkayastha

Type: Bug

Case 1:
#include<stdio.h>
#include<math.h>
int main()
{

int temp=5,check=3,power=0;
power=pow(temp,check);    
printf("Power:%d",power);  
return 0;

}
Here output is coming as 124
Case 2:
#include<stdio.h>
#include<math.h>
int main()
{

int ,power=0;
power=pow(5,3);    
printf("Power:%d",power);  
return 0;

}
Here output is coming as 125

Case 1 and Case 2 program both are correct but the output form case 1 is coming wrong due to some internal error of the vs code.
While the answer for case 1 will be 125.
I request the team to please rectify it.

VS Code version: Code 1.89.1 (dc96b83, 2024-05-07T05:13:33.891Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info
Item Value
CPUs AMD Ryzen 3 3250U with Radeon Graphics (4 x 2595)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 5.94GB (0.44GB free)
Process Argv --crash-reporter-id 5a52abdf-1a04-4476-97b2-864e643546d3
Screen Reader no
VM 0%
Extensions (24)
Extension Author (truncated) Version
blackbox Bla 1.3.42
bracket-pair-color-dlw Bra 0.0.6
prettier-vscode esb 10.4.0
code-runner for 0.12.2
codespaces Git 1.16.22
debugpy ms- 2024.6.0
python ms- 2024.6.0
cmake-tools ms- 1.17.17
cpptools ms- 1.20.5
cpptools-extension-pack ms- 1.3.0
vscode-print pdc 0.11.19
material-icon-theme PKi 5.3.0
java red 1.30.0
LiveServer rit 5.7.9
ayu tea 1.0.5
in-your-face-incredible TTO 1.1.0
cmake twx 0.0.17
intellicode-api-usage-examples Vis 0.2.8
vscodeintellicode Vis 1.3.1
vscode-java-debug vsc 0.57.0
vscode-java-dependency vsc 0.23.6
vscode-java-pack vsc 0.26.0
vscode-java-test vsc 0.41.1
vscode-maven vsc 0.44.0

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
tftest:31042121
vswsl492cf:30256860
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:31000449
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
chatpanelc:31048052
dsvsc021:30996838
9c06g630:31013171
pythoncenvpt:31049070
a69g1124:31046351
88717513:31044517
dvdeprecation:31052039
pythonprc:31047982
dwnewjupytercf:31046870
26j00206:31048877

@roblourens
Copy link
Member

Please file this on the repo for the C/C++ extension, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants